seems you " are out of place.
the ending of your line should read as follows:
"<a href='more_info.php?trip_id=$trip_id'>More Info</a><img src=" $myrow["icon"] ">");
possum wrote:
I have a field in my mysql db named icon that sores image pathnames like so... /images/africa/KEN11-285Elephant.jpg
my php to pull them out looks like this...
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>", "<img src=$myrow["icon"]>");
But I am getting the following error...
Parse error: parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' in /usr/local/etc/httpd/htdocs/idema/New_site/take_out/search_options3.php on line 42
Can anyone tell me why? I need some assistance.