On Mon, Dec 15, 2003 at 03:49:31PM -0700, Jas wrote: > $sql = mysql_query("SELECT hostname FROM $table WHERE vlan = > $_POST[dhcp_hosts]",$db)or die(mysql_error()); Maybe like this? $sql = mysql_query("SELECT hostname FROM $table WHERE vlan = '". $_POST["dhcp_hosts"]."'",$db)or die(mysql_error()); -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php