View Single Post
  #3  
Old 11-23-2002, 05:30 PM
 
derrick92130 derrick92130 is offline
 

Advanced Member
  
Join Date: Nov 2002
Location: San Diego, California USA
Posts: 68
 

Default img src calling php question

This is actually a pretty trick way of getting the image. The "img src" tag is expecting an argument of an image file. The image will be the results of the execution of /xcart/icon.php (at the very top level back in the 3.1.x versions). The icon.php program makes a call to the icon table in the database using the value passed in "categoryid". The resulting image is then returned to the "img src" tag, which is none the wiser that the image was extracted out of the database. Minorgod was right on the mark, with the returning of a "default image" if no match can be found in the icon database.

Hope this helps.
__________________
-Derrick
FreeRangeMinds, LLC
Reply With Quote