Re: [PHP] Re: very simple, yet can't think how.

2005-08-01 Thread sonu gill
Yes, that would be correct. Make sure all permanent directories such as "0" or "1" already exist, and generate all dynamic folders using mkdir function. Also, remember the templates you will be using. -sonu - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] ; ph

Re: [PHP] very simple, yet can't think how.

2005-08-01 Thread Mark Cain
I have coded this type of website for many years and have run the gamut of trying different things -- originally, 8 years ago, I used perl with flat files and physical folders but in the recent past I have used PHP, MySQL and dynamic folders. In my opinion the best way to build this site is with d

Re: [PHP] Re: very simple, yet can't think how.

2005-08-01 Thread Esteamedpw
Thanks, that's actually really close to what I was looking for... so if I wanted, say: _http://mydomain.com/0/joe_ (http://mydomain.com/0/joe) - you're saying I should have the Directory "/0/" or "/1/" already set up... right? then do I use something such as mkdir and chdir to create joe

[PHP] Re: very simple, yet can't think how.

2005-08-01 Thread sonu gill
>From my understanding of what you are trying to do you have templates, perhaps, setup for your users that get customized with each individuals data. In that case what you will require to do is first off 1. create a folder for user underneath the corresponding location you want the user setup,

[PHP] Re: Java - toString() <-> php - ?

2005-08-01 Thread sonu gill
Hi Adi http://www.php.net/manual/en/ref.classobj.php Check out the link above, and I'm sure you'll find what you are looking for. You will find functions there called get_class & get_class_vars that I think you will find very helpful. Hope this helps... -sonu "Adi Zebic" <[EMAIL PROTECTED]>

[PHP] Java - toString() <-> php - ?

2005-08-01 Thread Adi Zebic
To print "state" of object in Java I can define toString() function and then I can do something like this: Java exemple: * import java.io.*; import java.util.*; public class ReadTextFromFile { private static String line; private static String

[PHP] very simple, yet can't think how.

2005-08-01 Thread Esteamedpw
Hi everyone, Sorry for the n00bie question but I've been racking my brain, searching Google and yes, I have been "RTFM" for over 6 months :-) All I'm trying to do is set up a "User system" that allows a member to create their own personal site using an auto_increment type system? This is

Re: [PHP] Re: SOLVED - [PHP] php-mySQL insert problem

2005-08-01 Thread Jack Scott
no prob ;-) On Tue, 2005-08-02 at 02:27 +0200, Adi Zebic wrote: > Jack Scott a écrit : > > Try this: > > $insertQuery = "Insert into TABLE > > ( > > col_one, > > col_two > > )values ( > > '" . $this -> firstName .

[PHP] Re: SOLVED - [PHP] php-mySQL insert problem

2005-08-01 Thread Adi Zebic
Jack Scott a écrit : Try this: $insertQuery = "Insert into TABLE ( col_one, col_two )values ( '" . $this -> firstName . "', '" . $this-> lastName . "' )"; $db =& new

Re: [PHP] php-mySQL insert problem

2005-08-01 Thread Jack Scott
Try this: $insertQuery = "Insert into TABLE ( col_one, col_two )values ( '" . $this -> firstName . "', '" . $this-> lastName . "' )"; $db =& new DB; $res

Re: [PHP] Timezone date/time conversion

2005-08-01 Thread Chris Boget
I'm sure something like this has already been written and I'd hate to redesign the wheel. I've searched google but came up empty and am wondering if any of you guys have what I am looking for. I ended up writing my own. Hopefully to help anyone else out trying to do the same thing, I've includ

[PHP] php-mySQL insert problem

2005-08-01 Thread Adi Zebic
Hi, I'm new in php so like usual I have little problem(s). I have "DB" clas who connect to database, select database, query database and so on. I have other class "User" with some "members". exemple: ... var $firstName; var $lastName; ... Then I need to insert created object into mySQL database

Re: [PHP] array()

2005-08-01 Thread Edward Vermillion
Sebastian wrote: is it always necessary to call array() when you do something like this: mysql_query("SELECT "); while($rows .) { $data[] = $rows; } if so, why? i have a habit of never calling array() and someone told me i shouldn't do this. If that's your first use of $data then

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
I can only swear this to the entire list: Before I come here for help, each time, I echo and var_dump and print_r until, yes, I need a doctor. So by the time I come here, it's not laziness or lack of looking in the manual, it's head-swirling confusion infused with incompetence and a complete

[PHP] array()

2005-08-01 Thread Sebastian
is it always necessary to call array() when you do something like this: mysql_query("SELECT "); while($rows .) { $data[] = $rows; } if so, why? i have a habit of never calling array() and someone told me i shouldn't do this. -- No virus found in this outgoing message. Checked by A

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jochem Maas
Jack Jackson wrote: AAarg. Okay, thanks to all of you I've decided that any field name I need to see will be sent to $_SESSION['required_fields'] and basta. Then after the submit button is pressed, I am doing this: reset($_SESSION['required_fields']); reset is not required when using fo

Re: [PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread James
Thanks Rory: I tried using fopen() and CURL and they both worked like a charm! No need to juggle redirects and session variables. -James At 9:21 PM +0200 8/1/05, Rory Browne wrote: On 8/1/05, Jochem Maas <[EMAIL PROTECTED]> wrote: Rory Browne wrote: > On 8/1/05, James <[EMAIL PROTECTED]

Re: [PHP] trying to understand PHP unpack();

2005-08-01 Thread Jochem Maas
Sonia wrote: Hi In Perl I have a part of a script # cut.. my $line = '!v2005*08|05+09?04^19*!'; ^-- note how my email client screws up your original string... something I don't really understand... my ( $s_code, $year, $month, $day, $hour, $minute, $sec

Re: [PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread Jochem Maas
Rory Browne wrote: ... If you don't have admin access to your boxes, then you could write a session handler on one of the systems to dl the necessary sesssion info on demand. For more info see purely out of interest, see what? :-) Sorry - but I thought someone of your experience Jochem wo

Re: [PHP] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-01 Thread Greg Donald
On 8/1/05, Edwin Barrios <[EMAIL PROTECTED]> wrote: > I compile the vanilla kernel from kernel.org, linux-2.6.10 , and i'am > using apache 1.3.3. My php congifigurations are: > > './configure' '--with-apxs' '--with-pgsql' '--with-mysql' > '--with-opennssl' '--with-zlib' '--with-bz2' '--enable-ca

Re: [PHP] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-01 Thread Edwin Barrios
I compile the vanilla kernel from kernel.org, linux-2.6.10 , and i'am using apache 1.3.3. My php congifigurations are: './configure' '--with-apxs' '--with-pgsql' '--with-mysql' '--with-opennssl' '--with-zlib' '--with-bz2' '--enable-calendar' '--with-curl' '--with-curlwarppers' '--enable-ftp' '--

Re: [PHP] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-01 Thread Greg Donald
On 8/1/05, Edwin Barrios <[EMAIL PROTECTED]> wrote: > i'am developing a web framework SifEngine (Secure Web Inteface > framework) that implement MVC applaying the security ideas from > http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql. > > After of post my development on the in

RE: [PHP] returning info. from a form selection

2005-08-01 Thread Jim Moseby
> > can anyone give me an idea on how to return info. from a forl > pulldown menu > > eg: > > name="loan_process"> > selected="selected">Purchase > value="">Construct Home

[PHP] trying to understand PHP unpack();

2005-08-01 Thread Sonia
Hi In Perl I have a part of a script # cut.. my $line = '!v2005*08|05+09?04^19*!'; my ( $s_code, $year, $month, $day, $hour, $minute, $second, $e_code ) = unpack ( "x1 A1 A4 x1 A2 x1 A2 x1 A2 x1 A2 x1 A2 A1", $line ); print $s_code . "\n"; print $year . "\n"; print $month . "\n"; print $da

[PHP] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-01 Thread Edwin Barrios
i'am developing a web framework SifEngine (Secure Web Inteface framework) that implement MVC applaying the security ideas from http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql. After of post my development on the internet ( i have been thinking to post on PEAR ), i made simple

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
AAarg. Okay, thanks to all of you I've decided that any field name I need to see will be sent to $_SESSION['required_fields'] and basta. Then after the submit button is pressed, I am doing this: reset($_SESSION['required_fields']); foreach ($_SESSION['required_fields'] as $fieldname)

Re: [PHP] returning info. from a form selection

2005-08-01 Thread Edwin Barrios
Hi . ! what you want it's recive values from a "select". !!! First a select input send ( when the form is submitted ), the value of the selected item, then the php script that it's the form action recive, a on post or get a variable with the name of the select input with this value.

Re: [PHP] returning info. from a form selection

2005-08-01 Thread Rory Browne
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote: > It'd have to be in the form of a form and you'd need to add values to > the options, wrap it inside form tags, specify a method like $_POST or > $_GET, error check and then send. You don´t _have_ to specify a method. It defaults to "GET". Altho

RE: [PHP] Running a PHP script everyday

2005-08-01 Thread Steve Buehler
At 09:56 AM 8/1/2005, you wrote: [snip] What is the "-q" for? I can't find any documentation on it. If I do a "php -h" or "man php", it is not listed. I am running php 5.0.3 on RHEL ES 4 [/snip] It means 'quiet'...in other words do not send anything to standard out. Thank You. I guess they

Re: [PHP] MYSQL translator

2005-08-01 Thread Rory Browne
>From what I can see it looks a bit like an SQL version of the strtotime function. Basicly it translates from a less strict syntax, into the more strict SQL syntax, with the added advantage that the less strict one can be in a different language(in this case French and Italian) Is my understanding

Re: [PHP] returning info. from a form selection

2005-08-01 Thread Jack Jackson
It'd have to be in the form of a form and you'd need to add values to the options, wrap it inside form tags, specify a method like $_POST or $_GET, error check and then send. Bruce Gilbert wrote: can anyone give me an idea on how to return info. from a forl pulldown menu eg:

Re: [PHP] returning info. from a form selection

2005-08-01 Thread Rory Browne
You would give the options a different value(each of them in your case is "") Try Purchase Construct Home May I also suggest that if you're experimenting try putting "" without the quotes into whatever.php(see form action)

Re: [PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread Rory Browne
On 8/1/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Rory Browne wrote: > > On 8/1/05, James <[EMAIL PROTECTED]> wrote: > > ... > > > > > Do the two machines share a common domain name? are your machines for > > example boxa.commondomain.com and boxb.commondomain.com if so then you > > can have th

[PHP] returning info. from a form selection

2005-08-01 Thread Bruce Gilbert
can anyone give me an idea on how to return info. from a forl pulldown menu eg: Purchase Construct Home and return that to an email address. thanks -- ::Bruce:: -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread Jochem Maas
Rory Browne wrote: On 8/1/05, James <[EMAIL PROTECTED]> wrote: ... Do the two machines share a common domain name? are your machines for example boxa.commondomain.com and boxb.commondomain.com if so then you can have the cookies(which hold the session tracking number) operate at the commondo

Re: [PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread Rory Browne
On 8/1/05, James <[EMAIL PROTECTED]> wrote: > I have two Windows machines. > > machine A has apache/mysql/php (main host) > machine B has apache/media server (secondary host for high bandwidth > media such as video) > > I have admin tools (written in PHP and using sesson variables) on A > which a

Re: [PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread James
I just thought of something... Will this work... (machine A) User hits submit in the Admin Tools to delete a record. (machine A) I send POST variables to a database php script in a NEW WINDOW...at the end of the script...it uses a header() to call the PHP script on machine B...to delete files

[PHP] php script calling another one (on different machine), session variables

2005-08-01 Thread James
I have two Windows machines. machine A has apache/mysql/php (main host) machine B has apache/media server (secondary host for high bandwidth media such as video) I have admin tools (written in PHP and using sesson variables) on A which allows for updating of the database with pictures and suc

[PHP] [JOB] Need a Developer for PHP-MySQL Project

2005-08-01 Thread Larry E . Ullman
The National Coalition for Dialogue and Deliberation (NCDD) is seeking an independent contractor or company to perform some PHP and MySQL Web development work. In simplest terms, the Web site is a MySQL-driven content management system (CMS), written in PHP, running on a Unix/Linux server. The

Re: [PHP] Running a PHP script everyday [SOLVED]

2005-08-01 Thread Jochem Maas
[EMAIL PROTECTED] wrote: What a convoluted mess. Rather than using the shebang at the begging of the PHP file I had to put it in the cron command the shebang only works if you make the file executable... do something _like_: $> chmod ug+x /path/to/your/php/file "/usr/local/bin/php public_ht

Re: [PHP] encoding a + sign

2005-08-01 Thread Rory Browne
On 8/1/05, Diana Castillo <[EMAIL PROTECTED]> wrote: > I used this "%2B" instead of the + sign and it works, what type of encoding > is that? %2B looks like something that would appear in a URL, usually in the QUERY_STRING(which is part of the URL). + is the format you would use in an XML documen

Re: [PHP] encoding a + sign

2005-08-01 Thread Rory Browne
use + check out www.asciitable.com On 8/1/05, Diana Castillo <[EMAIL PROTECTED]> wrote: > what type of encoding should I use to send a "+" sign via XML? > > > -- > Diana Castillo > Destinia.com > C/Granvia 22 dcdo 4-dcha > 28013 Madrid-Spain > Tel : 00-34-913604039 Ext 216 > Fax : 00-34-91522

[PHP] encoding a + sign

2005-08-01 Thread Diana Castillo
what type of encoding should I use to send a "+" sign via XML? -- Diana Castillo Destinia.com C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP General Mail

[PHP] Timezone date/time conversion

2005-08-01 Thread Chris Boget
I'm sure something like this has already been written and I'd hate to redesign the wheel. I've searched google but came up empty and am wondering if any of you guys have what I am looking for. Basically I need a function that will convert a time from one time zone to another. Such that if I p

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jochem Maas
Jack Jackson wrote: Jochem Maas wrote: wtf are you smoking Jack? every checkbox that was checked will exist in the $_POST array set with the value you gave it (I alway set a chekcboxes value to 1 because the values mere existance in the submitted data indicates it's chevckbox was checked

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread tg-php
Don't forget also that if you're running on a Windows platform, you can use the php-win.exe to avoid having any console window appear at all. -TG = = = Original message = = = Steve Buehler wrote: > At 04:54 AM 8/1/2005, you wrote: > >> Shit shit shit!!! I completelly forgot! >> >> #!/usr/local

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Jochem Maas
Edward Vermillion wrote: Ryan A wrote: Hey, 'prolly' is not a member of the english language. and yes it's completely off topic but you knew that... Yep, I prolly did :-) Should have taken out the "most prolly" and just had OT, my apoligies. Cheers, Ryan P.S Join me in my campaign to

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread John Nichel
Steve Buehler wrote: At 04:54 AM 8/1/2005, you wrote: Shit shit shit!!! I completelly forgot! #!/usr/local/bin/php -q Notice the -q, it's important. Sorry :( What is the "-q" for? I can't find any documentation on it. If I do a "php -h" or "man php", it is not listed. I am running php

RE: [PHP] Running a PHP script everyday

2005-08-01 Thread Jay Blanchard
[snip] What is the "-q" for? I can't find any documentation on it. If I do a "php -h" or "man php", it is not listed. I am running php 5.0.3 on RHEL ES 4 [/snip] It means 'quiet'...in other words do not send anything to standard out. -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Mark Rees
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote: > > Jochem Maas wrote: > > > > > wtf are you smoking Jack? every checkbox that was checked will exist in the > > $_POST array set with the value you gave it (I alway set a chekcboxes > > value to 1 > > because the values mere existance in the subm

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread Steve Buehler
At 04:54 AM 8/1/2005, you wrote: Shit shit shit!!! I completelly forgot! #!/usr/local/bin/php -q Notice the -q, it's important. Sorry :( What is the "-q" for? I can't find any documentation on it. If I do a "php -h" or "man php", it is not listed. I am running php 5.0.3 on RHEL ES 4 Th

Re: [PHP] error checking woes

2005-08-01 Thread Jack Jackson
Kristen G. Thorson wrote: Thanks for the == ! But I had set $message global within the buld-checkbox function, so that part of it does work. . . . Jack, Read below: Jack Jackson wrote: Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and havi

Re: [PHP] error checking woes

2005-08-01 Thread Kristen G. Thorson
Jack, Read below: Jack Jackson wrote: Hi, Now that the drop down is working properly (thanks!!), I am trying to validate, and having LOTS of trouble. After being ceaselessly derided last night on an irc channel for my dimwitedness, I am still not any closer. The code which works is this

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Dotan Cohen
On 8/1/05, Jack Jackson <[EMAIL PROTECTED]> wrote: > > Jochem Maas wrote: > > > > > wtf are you smoking Jack? every checkbox that was checked will exist in the > > $_POST array set with the value you gave it (I alway set a chekcboxes > > value to 1 > > because the values mere existance in the sub

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Dotan Cohen
On 8/1/05, Ryan A <[EMAIL PROTECTED]> wrote: > > > P.S Join me in my campaign to get "PROLLY" as a member of the > > > English langauge... > > > > > > If enough people use it, it will prolly get into the dictionary in a few > > > years. > > > > > > :-D > > > > > Here in Texas it's > > already there

Re: [PHP] Re: dynamic two column table

2005-08-01 Thread Dotan Cohen
On 8/1/05, Mark Rees <[EMAIL PROTECTED]> wrote: > > i know how to break up db results into two tables but im having a hard > > problem with this: > > > > db structure > > > > --- > > | id | cid | title > > --- > > | 1 | 2 | hardware > > | 2 | 3 | software > > | 3 | 3 |

Re: [PHP] MYSQL translator

2005-08-01 Thread Dotan Cohen
On 8/1/05, Alessandro Rosa <[EMAIL PROTECTED]> wrote: > Dear All subscribers, > > I wish to submit to you a PHP class I coded to translate native language > parsed queries into SQL syntax ones. > > The main goal of this class is the implementation into web-based > applications > for letting final

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Ryan A
> > P.S Join me in my campaign to get "PROLLY" as a member of the > > English langauge... > > > > If enough people use it, it will prolly get into the dictionary in a few > > years. > > > > :-D > > > Here in Texas it's > already there... :D Good! That means my works already done there :-p -- PH

RE: [PHP] Limit emails from servers & recommend a control panel O T

2005-08-01 Thread Ryan A
> [/snip] > P.S Join me in my campaign to get "PROLLY" as a member of the > English langauge... > > If enough people use it, it will prolly get into the dictionary in a few > years. > [snip] > > I ceriusly dowt it. Hahahahah good one -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
Jochem Maas wrote: wtf are you smoking Jack? every checkbox that was checked will exist in the $_POST array set with the value you gave it (I alway set a chekcboxes value to 1 because the values mere existance in the submitted data indicates it's chevckbox was checked), if a checkbox does n

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Edward Vermillion
Ryan A wrote: Hey, 'prolly' is not a member of the english language. and yes it's completely off topic but you knew that... Yep, I prolly did :-) Should have taken out the "most prolly" and just had OT, my apoligies. Cheers, Ryan P.S Join me in my campaign to get "PROLLY" as a member of

RE: [PHP] Limit emails from servers & recommend a control panel O T

2005-08-01 Thread Jay Blanchard
[/snip] P.S Join me in my campaign to get "PROLLY" as a member of the English langauge... If enough people use it, it will prolly get into the dictionary in a few years. [snip] I ceriusly dowt it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Mark Rees
> > g.gill wrote: > >>From what I understand the simplest solution here would be to check to see > > if you have $_POST['cb'] in the first place. That would indicate if > > checkbox was selected or not. After, you have posted the form just do the > > following test. > > > > $check_box_exits = ((i

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Ryan A
Hey, > 'prolly' is not a member of the english language. > and yes it's completely off topic but you knew that... Yep, I prolly did :-) Should have taken out the "most prolly" and just had OT, my apoligies. Cheers, Ryan P.S Join me in my campaign to get "PROLLY" as a member of the English lang

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jochem Maas
Jack Jackson wrote: g.gill wrote: From what I understand the simplest solution here would be to check to see if you have $_POST['cb'] in the first place. That would indicate if checkbox was selected or not. After, you have posted the form just do the following test. $check_box_exits =

Re: [PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Jochem Maas
'prolly' is not a member of the english language. and yes it's completely off topic but you knew that... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date confusion

2005-08-01 Thread Burhan Khalid
On Jul 28, 2005, at 9:28 AM, Linda H wrote: Hi, I must admit I am surprised at the paucity of date and time functions in PHP. I have a date stored in a MySQL database in field of datatype date. PHP doesn't seem to have a function I can use to format it for print. I tried the following

[PHP] Limit emails from servers & recommend a control panel (most prolly 0T)

2005-08-01 Thread Ryan A
Hi, A client of mine wants to offer freehosting to tech companies in Sweden. (He plans to take a dedicated *unix server) 1) The main problem with offering hosting is there are some SOBs who will use that account to spam, so he asked me if it is possible to limit the amount of emails from each acco

Re: [PHP] Help with a Parse Error

2005-08-01 Thread Edward Vermillion
Tom Chubb wrote: I have changed it a bit, and don't have the old code now!!! I saw a post which identified a problem using isset when $var = ""; as it returns true, so I changed my code to use... if ($_GET['id'] != "") { $article="$id.php"; if (file_exists($article)) { include $article;

Re: [PHP] Re: error checking a null array

2005-08-01 Thread Jack Jackson
g.gill wrote: From what I understand the simplest solution here would be to check to see if you have $_POST['cb'] in the first place. That would indicate if checkbox was selected or not. After, you have posted the form just do the following test. $check_box_exits = ((isset($_POST['cb']))?

[PHP] Re: dynamic two column table

2005-08-01 Thread Mark Rees
> i know how to break up db results into two tables but im having a hard > problem with this: > > db structure > > --- > | id | cid | title > --- > | 1 | 2 | hardware > | 2 | 3 | software > | 3 | 3 | software > | 4 | 2 | hardware > > > how can i have hardware on colu

[PHP] MYSQL translator

2005-08-01 Thread Alessandro Rosa
Dear All subscribers, I wish to submit to you a PHP class I coded to translate native language parsed queries into SQL syntax ones. The main goal of this class is the implementation into web-based applications for letting final users/customers input their own defined queries without knowing sql s

Re: [PHP] Calendar program like on php.net

2005-08-01 Thread Burhan Khalid
On Aug 1, 2005, at 5:45 AM, Roger Thomas wrote: Quoting Jim Moseby <[EMAIL PROTECTED]>: I'd repost the link for you, but I've already deleted it. Sorry. Look back through the archives. JM I searched for 'Jim Moseby calendar' in the general and Dev mailing list but no go. Anty clue?

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread André Medeiros
Shit shit shit!!! I completelly forgot! #!/usr/local/bin/php -q Notice the -q, it's important. Sorry :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is this: dirname(__FILE__)?

2005-08-01 Thread Burhan Khalid
On Aug 1, 2005, at 3:18 AM, Robert Cummings wrote: On Sun, 2005-07-31 at 20:04, Sam Smith wrote: I don't recognize this something(__SOMETHING__) format. I know what it's doing but I don't know how it's doing it. Constants of the type __SOMETHING__ are historical constants for retrieving

Re: [PHP] Sessions Issue

2005-08-01 Thread Burhan Khalid
On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session(

[PHP] Re: error checking a null array

2005-08-01 Thread g.gill
>From what I understand the simplest solution here would be to check to see if you have $_POST['cb'] in the first place. That would indicate if checkbox was selected or not. After, you have posted the form just do the following test. $check_box_exits = ((isset($_POST['cb']))? true:false); ho