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"; } Quote Link to comment Share on other sites More sharing options...
gizmola Posted May 25, 2011 Share Posted May 25, 2011 What have you tried so far? Quote Link to comment 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.