MySQL DB Validation and Sessions
Posted: Wed Feb 18, 2004 4:05 am
Hello all, ok its the first time I have used this forum so bare with me!
I have a php helpsystem program. On my login page I have a form which allows the user to enter their ClientID and Password. Once they have done this it SHOULD check their details with the details in the database and IF they match then the session should start and they get on to the next page. The next page has a PHP script simply saying "Welcome.....(Their ClientID here)". Unfortunately I can get it to use the MYSql to check their details with the DB BUT It does not appear to copy the ClientID over suggesting that there is either something wrong with my sessions or I am printing them out on the next page incorrectly, wierd thing is that if I delete the SQL and just have the sessions running by putting the action form as the next page the session run great! any ideas how I can get the MySQL and sessions running together. Hope this makes sense, other forums have tried to help but I have not yet had much luck! Thanks all!
I have a php helpsystem program. On my login page I have a form which allows the user to enter their ClientID and Password. Once they have done this it SHOULD check their details with the details in the database and IF they match then the session should start and they get on to the next page. The next page has a PHP script simply saying "Welcome.....(Their ClientID here)". Unfortunately I can get it to use the MYSql to check their details with the DB BUT It does not appear to copy the ClientID over suggesting that there is either something wrong with my sessions or I am printing them out on the next page incorrectly, wierd thing is that if I delete the SQL and just have the sessions running by putting the action form as the next page the session run great! any ideas how I can get the MySQL and sessions running together. Hope this makes sense, other forums have tried to help but I have not yet had much luck! Thanks all!