Re: Passing info to forms

From: Date: Wed, 19 Feb 2003 10:37:09 +0000
Subject: Re: Passing info to forms
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136140@lists.php.net to get a copy of this message
Quoting Chris Blake <cblake@pbpc.co.za>: ### Greetings all, ### ### Whenever I run the code below, it bombs out with error ### ### ============================================================ ### Parse error: parse error, expecting T_STRING' or T_VARIABLE' or ### `T_NUM_STRING' in /home/data/ClientWebs/chrisplay/CustAmend.php on line ### 15 ### ============================================================= ### ### Basically, I am trying to pass info from an array from a previous page, ### where $row['ClientID'] is one of the fields I want to populate my page ### with.......here`s the code for the whole page ...... ### ### =============================================================== ### ### <?php ### //Create SQL to get Client Info ### $sSQLGetClient = "Select * FROM Client " . don't forget to terminate your lines with a ; (semicolon) ### $sSQLGetClient = "Select * FROM Client " ; ### $sSQLGetClient = "where ClientID = " . "'$row['ClientID']'" ; ### ### $ResGetClient = mysql_query($sSQLGetClient); ### if (!$ResGetClient) { ### echo("<P>Error performing query: " . mysql_error() . ### "</P>"); ### exit(); ### } ### ### $row = mysql_fetch_array($ResGetClient); ### ### ?> ### ### =========================================================== ### ### 5 days into PHP so this stuff is all new...perhaps I`m missing the boat ### totally. I visited PHP.com and phpfreaks but couldn`t find info on ### passing variables between forms..... ### ### Thanks in advance for any assistance..... ### ### -- ### Chris Blake ### Office : (011) 782-0840 ### Cell : 083 985 0379 ### It is reported that somewhere in the world, every 15 seconds, a woman ### gives birth to a child. She must be found and stopped. ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. rw@xend.net * http://xend.net * 602-971-2791 * * * * * *__ * * _/ \___ * * / * \* * */ * * \ * */\_ |\ / \_ / \ / \____/ \ / \ / \ / \

« previous php.general (#136140) next »