Applellial Posted June 10, 2011 Share Posted June 10, 2011 Im wondering if SQL / PHP is the right way to go about doing this. I have a database of users in MySQL and my PhP login script is working ok , but, I would like each user to be redirected to there own page after login. Is it possible to extract a the string from say "webpage" field in my database and then redirect the user to a url using that string? If its possible what commands should I be looking at from a tutorial point of view. Im a noob at this but its a lot of fun, a point in the right direction would be great. Thanks Link to comment https://forums.phpfreaks.com/topic/238953-can-i-redirect-different-users-to-different-webpages-using-mysqlphp/ Share on other sites More sharing options...
pastcow Posted June 10, 2011 Share Posted June 10, 2011 You probably need to look at this for the redirect header("Location: http://www.example.com"); die(); and mysql_query() for getting data from the db. Link to comment https://forums.phpfreaks.com/topic/238953-can-i-redirect-different-users-to-different-webpages-using-mysqlphp/#findComment-1227895 Share on other sites More sharing options...
revraz Posted June 10, 2011 Share Posted June 10, 2011 Yes, it's possible Link to comment https://forums.phpfreaks.com/topic/238953-can-i-redirect-different-users-to-different-webpages-using-mysqlphp/#findComment-1227920 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.