Retrieve data insert database!!
Posted: Tue Feb 23, 2010 5:37 am
i want to retrieve the information from database to display a product pictures.
Database Information
Image display ( i only want display 1 result for "pic1.jpg")
How to code for only take the first picture address (pic1.jpg) and ignored other?Please help Urgent. Thx
Database Information
Code: Select all
Table name : product
Column name : prod_img_url
Information inside the column : pic1.jpg,pic2.jpg,pic3.jpg
Code: Select all
<img src="/localhost/images/<?php echo $row['prod_img_url']"?>How to code for only take the first picture address (pic1.jpg) and ignored other?Please help Urgent. Thx