[PHP] Re: Concatenate PHP code into a string

2004-06-28 Thread franciccio
$query="INSERT"+" "; for ($i=0;$i ha scritto nel messaggio news:[EMAIL PROTECTED] > Dear List, > How can I include a dynamically generated array: > e.g. for($i=0; $i { $cols[$i]= mysql_field_name($fields,$i); } > > into a MySQL insert query of the type: > $sql= "INSERT cols[0],cols[1],cols[2]

[PHP] Re: Concatenate PHP code into a string

2004-06-28 Thread Torsten Roehr
"Abrea" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear List, > How can I include a dynamically generated array: > e.g. for($i=0; $i { $cols[$i]= mysql_field_name($fields,$i); } > > into a MySQL insert query of the type: > $sql= "INSERT cols[0],cols[1],cols[2], ..., comment

[PHP] Re: Concatenate

2003-06-30 Thread Ryan Vennell
lol, thanks guys. i'm a complete idiot. i've already used .= and such like 5 times in this very script. i honestly have no idea what i was thinking. a total brainfart (excuse the expression) -Ryan >>> Ryan Vennell<[EMAIL PROTECTED]> 06/30/03 10:31AM >>> how can i concatenate two strings?