Problem with query!!!! GET data .
Posted: Fri Aug 08, 2003 3:37 pm
Need some help getting values of my valiables in my DB.
I have a php page who has a form to search a user from my table by email.
The problem is I'm passing values from this code to a file to verify in this code if my value of the varriable I'm passing from my form exists in my DB.
I use GET in my form, and this code to compaire if teh email I querry exists in my DB.
CODE
$i=0;
$req = "SELECT email FROM $dbtable WHERE email_busca='$email'";
$res = mysql_query($req);
$username = mysql_result($res,$i,"username");
email_busca: is the name of the variable in my form.
email: is the name of the variable in my DB.
Could I have some help ???????????
I have a php page who has a form to search a user from my table by email.
The problem is I'm passing values from this code to a file to verify in this code if my value of the varriable I'm passing from my form exists in my DB.
I use GET in my form, and this code to compaire if teh email I querry exists in my DB.
CODE
$i=0;
$req = "SELECT email FROM $dbtable WHERE email_busca='$email'";
$res = mysql_query($req);
$username = mysql_result($res,$i,"username");
email_busca: is the name of the variable in my form.
email: is the name of the variable in my DB.
Could I have some help ???????????