Hi.
i've concatenated a string from a while statement on a SQL query. example: 
"$mars","$venus","$jupiter". let's say i call this $planets.
there are actual variables from a posted form with those names. say, 
$mars=1, $venus=2, $jupiter=3. however, when i echo "$planets" i get the 
string "$mars,"$venus"... rather than what I want:
"1," "2", "3". but if echo $mars i get "1."  i'm trying to create a dynamic 
sql insert statement because the page sending it doesn't know what/how many 
varialbes it's sending. if i hard code it, it works. this has been puzzling 
me for days! see, the 'planets' are all displayed on the form from the 
while statement to database table1. i.e. while (...results) 
$name=row[(planets)]....the other variables in the form are defined. say, 
$number. the statement/string reads them okay. i.e. if string/statement was 
("\"$number\",\"$mars\",\"venus\") it will echo as 
("54","$mars","$venus.....).  have i made my problem clear? because it's 
sure confusing me!





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to