[PHP] Passing info to forms

2003-02-19 Thread Chris Blake
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  .
  $sSQLGetClient = where ClientID =  . '$row['ClientID']' ;
  
  $ResGetClient = mysql_query($sSQLGetClient);
  if (!$ResGetClient) {
echo(PError 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




Re: [PHP] Passing info to forms

2003-02-19 Thread Richard Whitney
Quoting Chris Blake [EMAIL PROTECTED]:

### 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  
. $sSQLGetClient = where ClientID =  . '$row['ClientID']' ;
   should be:  *** Note the concatenator (.) ***
###   $sSQLGetClient .= where ClientID =  . '$row['ClientID']' ;
###   
###   $ResGetClient = mysql_query($sSQLGetClient);
###   if (!$ResGetClient) {
### echo(PError 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.
[EMAIL PROTECTED]   *
http://xend.net*
602-971-2791
  * *   *
*  *  *__**
 _/  \___  *
 *  /   *\**
  */ * *  \
**/\_ |\
 /   \_  /  \
/  \/\
   /  \ 
  /\
 /  \


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Passing info to forms

2003-02-19 Thread Richard Whitney
Quoting Chris Blake [EMAIL PROTECTED]:

### 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(PError 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.
[EMAIL PROTECTED]   *
http://xend.net*
602-971-2791
  * *   *
*  *  *__**
 _/  \___  *
 *  /   *\**
  */ * *  \
**/\_ |\
 /   \_  /  \
/  \/\
   /  \ 
  /\
 /  \


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php