kinks Posted August 6, 2009 Share Posted August 6, 2009 Okay... How exactly will I start out the PHP retrieving code for user info pages? There will be a user info page, and their 'rabbitry' page. Basically, how do I start the set-up for /profile.php?id=1 and /rabbitry.php?id=1 I've hit a wall in coding this :'( Quote Link to comment https://forums.phpfreaks.com/topic/169023-user-page/ Share on other sites More sharing options...
smerny Posted August 6, 2009 Share Posted August 6, 2009 well when you do ?id=1 it means that within that page $_GET['id'] will be a variable equal to 1 so what you do from there, i'm assuming you have a mysql db... is something like SELECT * FROM rabbits WHERE ID='".$_GET['id']."' and then display the info you get from the db Quote Link to comment https://forums.phpfreaks.com/topic/169023-user-page/#findComment-891775 Share on other sites More sharing options...
kinks Posted August 6, 2009 Author Share Posted August 6, 2009 well when you do ?id=1 it means that within that page $_GET['id'] will be a variable equal to 1 so what you do from there, i'm assuming you have a mysql db... is something like SELECT * FROM rabbits WHERE ID='".$_GET['id']."' and then display the info you get from the db Okay...thank you! Though, my host just had a ISE so, I can't test it all out. Quote Link to comment https://forums.phpfreaks.com/topic/169023-user-page/#findComment-891776 Share on other sites More sharing options...
wildteen88 Posted August 6, 2009 Share Posted August 6, 2009 Okay...thank you! Though, my host just had a ISE so, I can't test it all out. Why don't you develope/test your code off line. You can install PHP locally saves alot of time. Look into using wampserver or xampp Quote Link to comment https://forums.phpfreaks.com/topic/169023-user-page/#findComment-891780 Share on other sites More sharing options...
kinks Posted August 6, 2009 Author Share Posted August 6, 2009 Okay...thank you! Though, my host just had a ISE so, I can't test it all out. Why don't you develope/test your code off line. You can install PHP locally saves alot of time. Look into using wampserver or xampp Yeah...I am installing WAMP soon Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/169023-user-page/#findComment-891794 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.