I am quite new to PHP and I have an issue. I want to pass data from both the page I am sending it from and also from a while loop.
I want to pass both the Job_ID (which is from a separate table to the User_ID) and the User_ID when the user clicks on the "Send Job Request" link.
I do not know how to do this, I have experimented with Unions of the two tables, but nothing is working. Help would be appreciated
This is bits of my code
Jobs page
<?php
$Job_ID = $_GET ['Job_ID'];
$Job_ID = $_POST ['Job_ID'];
?>
<?php
mysql_connect ('','','');
mysql_select_db('');
$sql = "SELECT * FROM workerlogin WHERE category='".$category."'";
$records=mysql_query($sql);
?>
<?php
while($jobs=mysql_fetch_assoc($records)){
echo "<tr>";
echo "<td><a href='send_jobs.php?User_ID=" . $jobs['User_ID'] . "' ; >
Send Job Request</td>";
?>