$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? 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? 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? 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. } 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/ 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
Archived
This topic is now archived and is closed to further replies.