Thank you all for the great help.
From your reply, I found two mistakes:
1. In the $SQL statement, the variable $userid should be in single quotes as
jjones indicated.
2. As indicated by Klin, you have to reference the sql connection object within the mysql_query function.
Now my...
Hi; PHP experts:
In the last part of my project I run into a trouble in using mysql_num_rows() function, I want to use this function to check if the userID entered by the new user is already taken in the database. Here is the code:
$user_name = "root";
$pass_word = "";
$database =...
Hi;
I use the $_GET to get the values of variables attached to url like this:
http://www.abc.com/mypage.php?var1=abc
in the mypage.php, I use $var1=$_GET['var1'];
But it will give an error message when there is no variable attached to the url like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.