asdfghjkl Posted June 6, 2006 Share Posted June 6, 2006 ......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 ? Quote Link to comment https://forums.phpfreaks.com/topic/11309-how-to-login-a-user-after-he-is-registered/ Share on other sites More sharing options...
trq Posted June 6, 2006 Share Posted June 6, 2006 pardon? Quote Link to comment https://forums.phpfreaks.com/topic/11309-how-to-login-a-user-after-he-is-registered/#findComment-42353 Share on other sites More sharing options...
asdfghjkl Posted June 6, 2006 Author Share Posted June 6, 2006 what you're talking about Quote Link to comment https://forums.phpfreaks.com/topic/11309-how-to-login-a-user-after-he-is-registered/#findComment-42358 Share on other sites More sharing options...
trq Posted June 6, 2006 Share Posted June 6, 2006 Have you got a question? What is it? Be as clear as possible! Quote Link to comment https://forums.phpfreaks.com/topic/11309-how-to-login-a-user-after-he-is-registered/#findComment-42359 Share on other sites More sharing options...
asdfghjkl Posted June 6, 2006 Author Share Posted June 6, 2006 Thorpe ,i think that you are the one who got to make it clear . What you are talking about ? Quote Link to comment https://forums.phpfreaks.com/topic/11309-how-to-login-a-user-after-he-is-registered/#findComment-42360 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.