how to login a user after he is registered
Posted 06 June 2006 - 09:13 AM
mysql_connect (localhost , $username ) or die ( mysql_error()) ;
mysql_select_db ( $database) or die (mysql_error()) ;
$query =mysql_query( "select *from $tbl where username='$username1' and password='$password' ");
if ( !$query )
echo " I am closing the connection " ;
echo "Welcome" ;
i am connected to the database have the username and password signed ,
builded the mysql_query and now i am trying to if the username and password are not correct then destroy
, otherwise print "Welcome "
will you guide me ?
Posted 06 June 2006 - 11:03 AM
Posted 06 June 2006 - 11:12 AM
i think that you are the one who got to make it clear . What you are talking about ?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users