Page 1 of 1
Retrieve data insert database!!
Posted: Tue Feb 23, 2010 5:37 am
by ipohismytown
i want to retrieve the information from database to display a product pictures.
Database Information
Code: Select all
Table name : product
Column name : prod_img_url
Information inside the column : pic1.jpg,pic2.jpg,pic3.jpg
Image display ( i only want display 1 result for "pic1.jpg")
Code: Select all
<img src="/localhost/images/<?php echo $row['prod_img_url']"?>
Re: Retrieve data insert database!!
Posted: Tue Feb 23, 2010 8:57 am
by mikosiko
and where is the code that you have wrote so far?... which are your doubts or questions?... or are you asking for somebody to write the code for you?.
Show what are you done and specific questions... In the long term that will be good for you
Miko
Re: Retrieve data insert database!!
Posted: Tue Feb 23, 2010 9:43 am
by AbraCadaver
mikosiko wrote:and where is the code that you have wrote so far?... which are your doubts or questions?... or are you asking for somebody to write the code for you?.
Show what are you done and specific questions... In the long term that will be good for you
Miko
They already have it in $row, so I'll assume they've done something:
Code: Select all
$pic1 = array_shift(explode(',', $row['prod_img_url']));
Re: Retrieve data insert database!!
Posted: Tue Feb 23, 2010 10:04 am
by mikosiko
one line doesn't help to much to try to help them.

... yes.. you can assume... but you probablly already know the big rule about "assume" right?
all good
