Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Php array help


whitecoder - 1:59 am on Oct 17, 2012 (gmt 0)


For anybody else that may have this problem here is my php solution.


$fix = $_POST['help'];
$fix2 = $_POST['text_a'];

$chelp = count($fix);
$ctext = count($fix2);
if($chelp == $ctext)
{
for($x = 0; $x < $chelp; $x++)
{
$str[] = "('{$fix[$x]}','{$fix2[$x]}')";
}
$s = implode(',',$str);

mysql_query ("INSERT INTO vehicle_inspection (selection,problem) VALUES $s");
}


Thread source:: http://www.webmasterworld.com/php/4507837.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com