This was the problem. Thanks very much! Brad Fuller wrote:
2) INDEX is a mysql keyword. Try putting backticks around it. "... WHERE `index` = $randi"
-- Mike Shanley ~you are almost there~ "A new eye opens on March 5." -Omniversalism.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php