Checkboxes and arrays
Posted: Fri Jul 09, 2004 10:23 am
I don't even know if this is the right place to post this but maybe someone can either direct me to the right place or answer it here. I would like to pass an array that was created from checkboxes (as explained above ... thanks) into a mySQL database cell this is what I have now... it's not working. If I take this bit of code out it works but as soon as I insert it the page does not parse.
I am thinking that there is just a simple syntax error but I don't see it.
Any help would be appreciated
feyd | Please use
Code: Select all
if ($_POST[1031_exchange]) {
$own_array= implode(',', $_POST['own_array']);
$buy_array= implode(',', $_POST['buy_array']);
$sell_array= implode(',', $_POST['sell_array']);
$add_personal = "insert into personal_info values ('', $master_id, now(), now(), $own_array, $sell_array, $buy_array, $_POST[1031_exchange])";
mysql_query($add_personal) or die(mysql_error());
}Any help would be appreciated
feyd | Please use
Code: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]