Try building the SQL statement outside of the query. I've usually found that it fixes the problem.
$sql = "SELECT ID, alt FROM " . $MID . " LIMIT 10"; $newpics = mysql_query($sql); - Devon Knowles -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php