![]() |
man,aging the outputs , need urgent help
hey i have a problem with organizing the outputs from database
for exemple i want to be in a row 5 names then come to the other ligne and put other 5 rows here is my code PHP Code:
|
maybe this??
PHP Code:
|
no , for exemple
the name of the singer then his photo under the name 5 photos and name on one ligne then it come to the other ligne and post 5 other , ..... |
ah, then I think you have to while the whole results put names in one array, and photos in another.
After that just print 5 names from the first array, then 5 photos on the other lines from the second array, and so on... |
Then I could suggest to make it a 3D array.
array contains an array for the first value of the first array, and then in that array the information from the value you're trying to access. I will 'map' it out later, got to go! |
From your first post it seems the photos also come from the database.
How is the data returned by your SQL query organized? If it returns 5 rows for each artist (name repeats but the photo changes) you could do it like this: PHP Code:
|
I'd go with CSS. Something like:
PHP Code:
Code:
#listing { width:600px;} |
thanks but the name and photo changes
|
| All times are GMT. The time now is 06:59 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0