|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
while($row = mysql_fetch_array($result)
I am having an issue with a very simple shopping cart that i am working on. I am designing it to sell stock photos and I am unsure how to output the data from mysql into columns. I want there to be 3 or 4 thumbnails in a row which can be added to a cart but using the while($row = mysql_fetch_array($result) causes them to all be in one column down the page with only one thumb per row and i am wondering if anyone can help me with how to fix this.
Thank you. |
|
#2
|
|||
|
|||
|
However you pull the results from your database, they're only results -- there's no display logic going on in there. You'll need to build that into the script that pulls those results. It can be as simple as something like:
PHP Code:
__________________
"A pawn is the most important piece on the chessboard -- to a pawn" |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > while($row = mysql_fetch_array($result) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|