Re: [PHP] array output as a variable?

2001-04-11 Thread Brian Clark
@ 2:39:12 AM on 4/12/01, Brian Clark wrote: ... > @ 2:13:10 AM on 4/12/01, midget2000x wrote: ... >> //declare the array >> $info_request = array (1 => >"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date"); Sorry, I

Re: [PHP] array output as a variable?

2001-04-11 Thread elias
$info_request = array (1 => "firstname","lastname","email","howfound","optin","comments","request_type", "request_bucket","date"); $flds = implode(",", $info_request); $sql = "INSERT INTO mytable($flds)" mysql_query($sql) hope it helps at least a little. -elias http://www.kameelah.org/eassoft

Re: [PHP] array output as a variable?

2001-04-11 Thread Brian Clark
Hi midget2000x, @ 2:13:10 AM on 4/12/01, midget2000x wrote: ... > Obviously the code below is impossible, but illustrates what I want to do: > //declare the array > $info_request = array (1 => >"firstname","lastname","email","howfound","optin","comments","request_type","request_bucket","date")

[PHP] array output as a variable?

2001-04-11 Thread midget2000x
another newbie programmer question... is it possible to output the results of an array loop into a variable, or directly into an SQL call? Obviously the code below is impossible, but illustrates what I want to do: //declare the array $info_request = array (1 => "firstname","lastname","email","h