Okay, you've got to elaborate a bit on what you are doing.
PHP & Agora do NOT work together, it will cause tons of cross-scripting errors and be a huge mess.
You can use tokens to display the images...
Images are always dynamically when using a database driven store.
For example the main image for a product is defined in it's "Image Filename" field and is displayed on the product page using the %%image%% token.
If you want to display other images, just use a user field in the database to put the image's file name and then in the product page use the following type of token:
<img src="%%URLofImages%%/%%userFieldTwo%%" border="0">
HTH!
_________________
God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership