chanarmstrong Posted May 25, 2011 Share Posted May 25, 2011 how do i edit this, so it links to mySQL database customer table? if($userName=="janet" && $passWord=="qwerty") { // Assign userName to a session variable to track and use on each page $_SESSION['userName']=$userName; // Assign valid string to a session variable to track session validity $_SESSION['status']="valid"; } else { // error state $_SESSION['status']="invalid"; } Link to comment https://forums.phpfreaks.com/topic/237481-php-sql-login/ Share on other sites More sharing options...
gizmola Posted May 25, 2011 Share Posted May 25, 2011 What have you tried so far? Link to comment https://forums.phpfreaks.com/topic/237481-php-sql-login/#findComment-1220308 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.