is register_globals set to off in php.ini?
this may be the issue if it is set to on.
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]
Sent: 15 December 2003 22:50
To: [EMAIL PROTECTED]
Subject: [PHP-DB] sql errors?
I have checked and rechecked my code on these php to mysql
I have checked and rechecked my code on these php to mysql statements
and for some reason I either get no data (through php, where through a
command line I get all the data I need) or errors on the update
function. Could someone tell me what I am doing wrong?
$sql = mysql_query(SELECT
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());
--