i have two arrays being gathered from form inputs both text and images
$final = array($info, $paths);
print_r($final);
this prints
Array ( [0] => Array ( [0] => '1995', [1] => 'chevrolet', [2] => 'impala', [3] => '5.7', [4] => 'bose', [5] => '165465', [6] => 'sadfasdf', [7] => '', [8] => '', [9] => 'asdfasdasdf', [10] => '', [11] => '', [12] => 'sdafasdfasd', [13] => '', [14] => '', [15] => '', [16] => '', [17] => 'asdfasdf', ) [1] => Array ( [0] => 'images/picture22677.png', [1] => 'images/picture22678.png', [2] => 'images/picture22679.jpg', ) )
PERFECT!
but how do i now convert this $final
array into a single string like this
'$value', '$value', '$value', '$value',
but with out the array key number to better understand me i need a string i can finnaly insert into mysql like so
mysql_query("INSERT INTO
auto(year, make, model, engine, sound_system, mileage, att1, att2,
att3, att4, att5, att6, att7, att8, att9, att10, att11, att12, att13, att14, att15, picture1,
picture2, picture3, picture4, picture5, picture6, picture7, picture8, picture9,
picture10, picture11, picture12)
VALUES
($finalpaths));
see for VALUES ($finalpaths));
here is where i need to have the array list into a string that would work in this case
i hope you understood what i need, thanks for any input:)