laide234 Posted July 31, 2006 Share Posted July 31, 2006 I am trying to create a joblist of sorts from a database. The index page lists the jobs as clickable links.On clicking the link (based on the job_id), a page shouls pull up the details from the database/jobs/index.php?detail=1/jobs/index.php?detail=2, etc.How can I do this?? Link to comment https://forums.phpfreaks.com/topic/16115-click-link-for-details/ Share on other sites More sharing options...
Ferenc Posted July 31, 2006 Share Posted July 31, 2006 You cane use $_GET, or $_REQUEST to aquire the id passed in the URL[code]$job_id = $_GET['detail'];// query database$sql = mysql_query("SELECT * FROM job_details WHERE id = '$job_id'"); [/code] Link to comment https://forums.phpfreaks.com/topic/16115-click-link-for-details/#findComment-66467 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.