> string(40) "SELECT * FROM table WHERE id=107 " > string(3) "107" And this query works when you run it on the database directly? Id 107 exists? Assuming that that's both so we're running out of options. After the select, can you do a print of mysql_error() and of mysql_num_rows()? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php