Jump to content

Logging In


Imoddedu

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...