Jump to content

Archived

This topic is now archived and is closed to further replies.

laide234

Click link for details

Recommended Posts

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??

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.