[PHP] Variables not being received from form

2003-02-23 Thread Peter Gumbrell
Thanks to those who have helped me with my two other questions this afternoon. In the function below, the update query at the end is inserting empty values into the database. For some reason the lines: $rank = $HTTP_POST_VARS['rank']; $title_new = $HTTP_POST_VARS['titles']; re not picking up the f

[PHP] PHP_SELF syntax

2003-02-23 Thread Peter Gumbrell
Could someone tell me why this code prompts a parse error. I have tried it several different way. The statement is called from within a function: print "\n"; Many thanks Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] update query not working

2003-02-23 Thread Peter Gumbrell
error()); } I do not see the statement "updated!!!" printed, but I cannot see anything wrong with my syntax. Any help would be appreciated. Peter Gumbrell [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ereg usage

2003-02-16 Thread Peter Gumbrell
Could someone please tell me why this code is not working: ereg ('^[A-H]*([0-9]+)-$', $rank, $matches); $workshop_ID = $matches[1][2}; where $rank is something like C12-1 and I just need the C12 part. Many thanks Peter Gumbrell [EMAIL PROTECTED] -- PHP General Mailing

RE: [PHP] function problem

2003-02-14 Thread Peter Gumbrell
Friday, February 14, 2003 6:41 PM To: Php-General Subject: Re: [PHP] function problem Exactly where does $option_block get put into $string? -Kevin - Original Message - From: "Peter Gumbrell" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Fri

[PHP] function problem

2003-02-14 Thread Peter Gumbrell
de the $option_block variable global but it still won't print. I have tested that the $column field is being populated and it is, so I believe that it must be the $option_block part that isn't working. Does anyone have any suggestions? Peter Gumbrell [EMAIL PROTECTED] -- PHP General Mailing

[PHP] problems with ==?

2003-02-06 Thread Peter Gumbrell
otes and no quotes around 'vendor' but none of them work. Thanks Peter Gumbrell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
x27;, 'Geometry and Spatial Sense','Patterning and Algebra','Data Management and Probability')); Peter Gumbrell [EMAIL PROTECTED] -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 2:50 PM To: 'Peter Gumbrell

RE: [PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
and[]",$strandx,$str,0,0); print "\n"; } Any help would again be appreciated. Peter -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 02, 2003 1:28 PM To: 'Peter Gumbrell'; [EMAIL PROTECTED] Subject: RE: [PHP] selecting from an arra

[PHP] selecting from an array based on form content

2003-02-02 Thread Peter Gumbrell
he subject selected in a form. So, for example, if "English" is selected in the form, only the subject name and the strands for English would be published. Could someone please help me with the code for this. Many thanks, Peter Gumbrell [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] selecting items from an array

2003-02-01 Thread Peter Gumbrell
, Peter Gumbrell [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] select unique values from an array

2003-02-01 Thread Peter Gumbrell
? Many thanks Peter Gumbrell [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php