Re: sql errors?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux