Sorry, I was trying to figure out an alternative to the [] which you answered in the previous post. I was figuring that it was that which was causing the illegal string error, but now I'm not so sure.
Is the following code allowed to you know. It's a form which updates multiple bids on keywords in one go or deletes them if the delete box is checked.
$kn = 0;
if ($keywords[$kn] !=(''))
do {
$time = date("Y-m-d H:i:s",time());
mysql_query ("UPDATE keywords SET bid='$bid[$kn]' WHERE keywords='$keywords[$kn]' and username='$username' and password='$password' and url='$url'");
if ($delete[$kn]==('on')){
mysql_query ("delete from keywords WHERE id='$id[$kn]' and username='$username' and password='$password'");
} else {}
$kn++;
} while ($keywords[$kn] !=(''));
else {}