forgive the basic question but how do I add a space in my query.... $result=mysql_query("SELECT * from ".$dbname.".grades WHERE user_id=".$uid. " and subject=".$subject,$db); I need to force a space between $uid and 'and' and I don't think simply pressing the space bar does it. Thanks, Eddie -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php