ive got 2 errors that are displayed on the browser:
Notice: Undefined variable: jnum in C:\Inetpub\wwwroot\disso\jobs2.php on line 8
this is at the top of the page,
Second error:
Fatal error: Call to undefined function: form_d() in C:\Inetpub\wwwroot\disso\jobs2.php on line 34
when the following file is uploaded:
<?
include 'db_param.php';
include 'common.php';
include 'header.inc.php';
if (!isset($_POST['jnum']) || $_POST['jnum'] == "")
$link = mysql_connect($db_h, $db_u, $db_p) or exit ("Unable to connect!");
mysql_select_db($db) or exit ("Could not connect to database");
[THIS LINE BELOW IS LINE 8]
$sql = "SELECT job.j_title, job.j_num, depart.dep, location.location, salary.salary, job.j_resp, job.j_req, job.j_cont, job.cont_mail, job.posted from job, depart, location, salary WHERE depart.d_id = job.depart AND location.l_id = job.location AND salary.s_id = job.salary AND job.j_num = '$jnum'";
$query = mysql_query($sql) or exit ("Error in query: $sql. " . mysql_error());
if (mysql_num_rows($query) <= 0)
list($jtitle, $jnum, $department, $location, $salary, $jresp, $jreq, $jcont, $contmail, $posted) = mysql_fetch_row($query);
mysql_close($link);
?>
<br>
<!-- print job details -->
<b>Job Title:</b> <? echo $jtitle; ?>
<p>
<b>Job number:</b> <? echo $jnum; ?>
<p>
<b>Department:</b> <? echo $department; ?>
<p>
<b>Location:</b> <? echo $location; ?>
<p>
<b>Salary:</b> <? echo $salary; ?>
<p>
<b>Responsibilities:</b> <? echo $jresp; ?>
<p>
<b>Qualifications:</b> <? echo $jreq; ?>
<p>
<b>Contact:</b> <a href=mailto: <? echo $contmail; ?> <? echo $jcont; ?></a>
<p>
<b>Posted on:</b> <? echo form_d($posted); ?> [THIS IS LINE 34]
<p>
Can some one help, how can i resolve this?