I have got 2 pages, one generates a bit for the job information called jobs.php
and another page called Jobdescription.php
displays the full details of the job I selected. On the jobdescription.php
page, 2 tables are involved one called Employers
and the other called APP_Jobs
. This is the code I have got so far, but I get a blank page with no error or anything.
<?
//database connection
$dblink = mysqli_connect($mysqli_host, $mysqli_user, $mysqli_pw, $mysqli_db);
$sql_query = "SELECT APP_Jobs.* FROM APP_Jobs INNER JOIN Employers on APP_Jobs.Emp_id=Employers.Emp_id";
$query_result = mysqli_query($dblink, $sql_query) OR die ("Cannot read from DB ".mysql_error($dblink));
while ($row = mysqli_fetch_array ($query_result))
{
{
echo "<h3>'".$row['Job_Title']."'</h3>";
echo "<tr>
<td>
Employer : ".$row["Emp_name"]." <br />
Address : ".$row["Emp_address"]." <br />
Town : ".$row["Emp_town"]." <br /><br />
<h1>Job Details</h1>
Description : ".$row["Job_description"]."<br />
Skills Required : ".$row["Job_Skills"]."<br />
Training provided : ".$row["Job_Training"]." <br /><br />
Start : ".$row["Job_StartDate"]."<br />
pay:".$row["Job_pay"]." <br /><br />
<a href=CV1.php?Job_id=".$row["Job_id"].">Apply</a>
</td>
<tr>
<td colspan=\"2\"><hr size=\"1\"/></td>
</tr>
</tr>\n";
}
}
?>