Hello , ive been working on a script that displays entries from my sql , the script seems to works fine now but i am trying to add in a feature so that when each row of data is extracted from the array and put into the table it will have "more info" html text in the far right field that links to "info.php" to display that records information held in another table.
At the moment ive having trouble getting it even to put in teh html text link i need , any help would be greatly appreciated.
thanks
echo "<tr><td>Job ID</td><td>Job Details</td><td>Job Title</td><td>Location</td><td>Salary</td><td>Closing date</td><td>Type</td><td>info</td></tr>\n";
//start loop
do {
//write rows in the array to the screen
printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n", $myrow["JobID"],$myrow["JobDetails"],$myrow["Jobtitle"],$myrow["location"],$myrow["salary"],$myrow["closingdate"],$myrow["type"],"<a href="info.php?record=$myrow["JobID"]" info /a>");
This is the rough idea of how it should work but i know i have the syntx wrong but cant figure out how to do it.
}
//keep looping while there is still stuff there
while ($myrow = mysql_fetch_array($result));
echo "</table>\n";