zeeshan Posted March 10, 2008 Share Posted March 10, 2008 how can i use an session i mean should i add this in the log in script<?php setsession(name,username,password)<html><body></body></html>and i should use an select method for a log in script Link to comment Share on other sites More sharing options...
Wander Posted March 10, 2008 Share Posted March 10, 2008 what u mean with a selec method for a log?to use sessions u first have to open a session using session_start();then u can save things the session by using the superglobal $_SESSIONso if u set $_SESSION['user'] = 'something'; then this will be saved in the session and will still be available on another page (as long as u also opened a session there)also see: http://www.php.net/session Link to comment Share on other sites More sharing options...
jlhaslip Posted March 10, 2008 Share Posted March 10, 2008 session_start needs to be on every page in order to link one page to another. If you break the chain, the session is invalid for retaining 'state'. Just a reminder. Link to comment Share on other sites More sharing options...
Synook Posted March 11, 2008 Share Posted March 11, 2008 and i should use an select method for a log in scriptA SELECT SQL query would be the most appropriate way to retrieve user information from a database to check it when someone attempts a login. Link to comment Share on other sites More sharing options...
zeeshan Posted March 11, 2008 Author Share Posted March 11, 2008 so iam making an pokemon rpg so can any one help me their ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.