hey guys, trying to make a function anyway why wont this insert data into the table
Without the loop it would add 1 line of the array...but not all of them...any idea what to do?
Code:
$Connection = mysql_open();
$likes= array();
foreach($likes as $like)
{
$insert3 = "insert into ProfileInterests " .
"values ('$id', $like, null)";
$result3 = @ mysql_query ($insert3, $connection)
or showerror();
mysql_close($connection)
or showerror();
}
Without the loop it would add 1 line of the array...but not all of them...any idea what to do?