And a database called "electrical_items" ,with a table called "products" ,with the columns roduct_id,product_brand,product_model,product_price,product_image .
Now what i want...
I want to display in the big left cell of the table ,the image stored in a folder named "product_images",but the script to be able to pick the image file name,from the database (i have stored already the image file name in the table "products" already based on the product_id.
So im looking for a script that its able to read the image file name,based to product_id from the database,then to look for it from the folder "product_images",and then display it in the left cell of the table.
After that i will use the repeat region to display different products.
You might try tweaking the path I put in my code by putting a slash in front of it, or even ../ or, if that doesn't work, use a full path, but that's not ideal because the code would cause problems if it were ever used on an SSL page.
Maybe even the full server path to the webroot and on to the right directory like "/home/user/public_html/product_images"
You might also place some extra "echo" commands in there to check the values of the variables to make sure they are what you expect them to be.