hi... i want to insert data from array using mysql from php..and now i using this code :
for ($i = 0; $i < count($data1); $i++) {
$insert_sql = sprintf("INSERT INTO detail_paket (id_paket, menu_paket) select paket.id,'\"%s\"' from paket where paket.nama_paket='$nama_paket'",%data1[$i]);
mysql_query($insert_sql);
}
data1 is the array..
what is the correct syntax to use \"%s\ ?