Jump to content

Archived

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

asdfghjkl

how to login a user after he is registered

Recommended Posts

......
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 " ;
exit ;
}
else
{
mysql_fetch_array($query) ;
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 ?

Share this post


Link to post
Share on other sites
Have you got a question? What is it? Be as clear as possible!

Share this post


Link to post
Share on other sites
Thorpe ,
i think that you are the one who got to make it clear . What you are talking about ?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.