<?php
include('user_check.php');
include('db_con.php');
?>
<html>
<head>
<title>Reports</title>
</head>
<body bgcolor="white">
<font face="Verdana, Arial, Helvetica, sans-serif">
<center>Ad Number<br><br></center>
<?php
$tableid=68;
echo "<center><strong>$tableid</strong><br><br></center>";
$query="SELECT * FROM ad_order WHERE cust_id=$tableid";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num)
{$id=mysql_result($result,$i,"id");
//////////////////////////////////////////////////////////////////
//////I need something like query=SELECT time FROM job_log WHERE id=$id
//////echo $id $time associated with that id
//////then go on with the loop
//////////////////////////////////////////////////////////////////
echo "<center>$id<br></center>";
$i++;}
?>
</body>
</html>
My page looks like this:
Table ID
id#
id#
id#
id#
What I need is this:
Table ID
id# time
id# time
id# time
id# time
Ben Stein voice "Anyone, anyone?"