Jump to content


Photo

Click link for details


  • Please log in to reply
1 reply to this topic

#1 laide234

laide234
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 31 July 2006 - 04:22 PM

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

#2 Ferenc

Ferenc
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 31 July 2006 - 05:10 PM

You cane use $_GET, or $_REQUEST to aquire the id passed in the URL

$job_id = $_GET['detail'];

// query database
$sql = mysql_query("SELECT * FROM job_details WHERE id = '$job_id'");

Everything you want to know is here.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users