images

wxdqz

New Member
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='http://www.phpbuilder.com/board/archive/index.php/more_info.php?trip_id=$trip_id'>More Info</a>", "<img src=http://www.phpbuilder.com/board/archive/index.php/$myrow["icon"]>");

But I am getting the following error...
Parse error: parse error, expecting `T_STRING' or `T_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.
 
Back
Top