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 ? 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? 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 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! 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 ? 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
Archived
This topic is now archived and is closed to further replies.