zitwep
07-14-06, 03:16 PM
Ok, I know I am dumb for having so much problems with SQL queries, but could somebody let me know whats wrong with this now
$cookieuser = $_COOKIE['' . $companyname . '_login_pass'];
$cookiepass = $_COOKIE['' . $companyname . '_login_pass'];
$query = "SELECT * FROM " . $tblpref . "members WHERE username = '" . $cookieuser . "';";
$getdata = mysql_query($getdata) OR die(mysql_error());
$numrows = mysql_num_rows($getdata);
Giving me this error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #41' at line 1
Thanks as usual for your help ;)
zitwep
$cookieuser = $_COOKIE['' . $companyname . '_login_pass'];
$cookiepass = $_COOKIE['' . $companyname . '_login_pass'];
$query = "SELECT * FROM " . $tblpref . "members WHERE username = '" . $cookieuser . "';";
$getdata = mysql_query($getdata) OR die(mysql_error());
$numrows = mysql_num_rows($getdata);
Giving me this error
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #41' at line 1
Thanks as usual for your help ;)
zitwep