Please show me the exact syntax for storing a pathname to an image on the server, then displaying it in a browser... Here is the code for the output table I currently have. I want to include a section for the images... Please help.
do{
echo "<TABLE BGCOLOR=#808000 BORDER=5 CELLPADDING=2 CELLSPACING=2>\n";
echo "<tr><th>Trip Name</th><th>Region</th><th>Country</th><th>Description</th><th>Cost</th><th>More Info</th><br><br>";
$trip_id=urlencode($myrow["trip_id"]);
printf("<tr><td bgcolor=#C0C0C0>%s</td><td bgcolor=#C0C0C0>%s</td><td bgcolor=#C0C0C0>%s</td><td bgcolor=#C0C0C0>%s</td><td bgcolor=#C0C0C0>%s</td><td bgcolor=#C0C0C0>%s</td></tr>\n",
$myrow["trp_name"], $myrow["region"], $myrow["country"], $myrow["description"], $myrow["cost"], "<a href='more_info.php?trip_id=$trip_id'>More Info</a>");
}
while ($myrow=mysql_fetch_array($result));
echo "</table>\n";
}
else
{
echo "Sorry, no records were found.";
}
echo "$flag1";
echo "$flag2";
?>