TheDefender wrote:Do you have any code already written that you'd be willing to share so we can get a better understanding of what you are trying to do?
If you need all of the values, but don't necessarily want to display them, then do a SELECT * in your query, and then only output what you want to output instead of making a call to every column...
In regards to outputting the data like your picture... How many columns do you want to show? Did you want to do something like 5 columns? 4 columns? Give code and details...
Thanks for helping in this regards.
First of all i would like to tell you, i am good at other programming languages, but i am new to PHP..... so i am having problem with that.
I am able to get the connection properly, as you can see that data is being displayed....
Here is the piece of code....
for( $i = 0; $i <= $num_rows; $i++){
$img_path = "http://magicsolvexports.com/prod_images/".mysql_result($result,$i,5);
echo "<b>";
echo mysql_result($result,$i,1);
echo "</b>";
echo "<br >";
echo "<img src='$img_path'>";
echo "<br >";
echo "The hourly photo shot fee: $". mysql_result($result,$i,2);
echo "<br > <br >";
}
?>
What i want to do....
I want to display the 2 images in a row and only 3 rows in a page.
Now the table structure:
ID : Primary Key
Prod_ID
Title:
Rate:
Description:
Image Name
Image_Thum_Name
when you follow the previously posted link, you'll see what way i want to show the images there....
TITLE
IMAGE
Prod ID: Rate:
Description
This the way i want to display the images.
Actually i dont know how to get records set in PHP. I thinks its comes as row?
if so how could i can get particular fields from this row? and then how to move to fetch next row.
I hope this is clearer now, if not feel free ask any further question to resolve this....