$php_mysql$ Posted July 11, 2011 Share Posted July 11, 2011 ok so ijm done with my index page which even counts records from db now i need to display them and my url looks like this http://localhost/nescript/display_ads.php?page=display_ads&category=Career_Jobs where do i go about now? Quote Link to comment https://forums.phpfreaks.com/topic/241649-what-is-the-next-step-need-to-display-records/ Share on other sites More sharing options...
trq Posted July 11, 2011 Share Posted July 11, 2011 What exactly is your issue? Quote Link to comment https://forums.phpfreaks.com/topic/241649-what-is-the-next-step-need-to-display-records/#findComment-1241151 Share on other sites More sharing options...
$php_mysql$ Posted July 11, 2011 Author Share Posted July 11, 2011 issue is how do i get the display_ads.php?page=display_ads&category=Career_Jobs results to print at the display_ads.php page? Quote Link to comment https://forums.phpfreaks.com/topic/241649-what-is-the-next-step-need-to-display-records/#findComment-1241160 Share on other sites More sharing options...
teynon Posted July 11, 2011 Share Posted July 11, 2011 if ((isset($_GET['page']))&&($_GET['page']=='display_ads')&&(isset($_GET['category']))) { // MySQL query get rows. switch ($_GET['category']) { case "Career_Jobs": $sql="SELECT * FROM table WHERE Category = 'Career_Jobs'; break; } // Do query. } Quote Link to comment https://forums.phpfreaks.com/topic/241649-what-is-the-next-step-need-to-display-records/#findComment-1241172 Share on other sites More sharing options...
$php_mysql$ Posted July 11, 2011 Author Share Posted July 11, 2011 hawww thanks soo much teynon this was what i was looking for. \m/ Quote Link to comment https://forums.phpfreaks.com/topic/241649-what-is-the-next-step-need-to-display-records/#findComment-1241289 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.