Imoddedu Posted April 6, 2009 Share Posted April 6, 2009 Here is the code <html><head><title>Login Test</title></head><body><?php$U=$_GET["U"];$P=$_GET["P"];$con = mysql_connect("----","----","----");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("----", $con);$Username ="SELECT * FROM Username WHERE id = '".$U"'";$Password ="SELECT * FROM Password WHERE id = '".$P"'";if (!$Username){die('Wrong Username');//}if (!$Password){die('Wrong Password');}echo "Welcome" . "$U"?></body></html> I'm not sure what is wrong in the code. The error I get is Link to comment Share on other sites More sharing options...
Imoddedu Posted April 6, 2009 Author Share Posted April 6, 2009 Fixed the error. I just had to remove the extra "s from the $Username and $Password. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.