The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
how do you display three records then start a new row?
I'm doin a script and I want 3 resaults and then start a new row can some one tell me what code to use?
|
#2
|
||||
|
||||
do you want all the first three results in one row? so like
--------------------------- | result_1 result_2 result_3 | --------------------------- | result_4 result_5 result_6 | --------------------------- |
#3
|
|||
|
|||
yes that is.
|
#4
|
||||
|
||||
Ok I'm no php professional, but this is what I did once for a client of mine and it seemed to work. Basically it displays the results upto 3 columns per row or 3 results per row, once the 3 results has been displayed, it goes to the next row.
$number, this variable controls the total amount of data you want to display. also you have to change this part Code:
SELECT id, image, link, category FROM $table and last, change this the same way, Code:
$row[link] PHP Code:
|
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
I personally did it by putting the forum's db info and connecting to forum's database.
|
#7
|
|||
|
|||
oh well I'll just use what you gave me.
|
#8
|
||||
|
||||
Just go to a place like Sitepoint.com and do a search for the term "Modulus" and you will find loads of info on easy solutions. I would answer direct but I'm headed off to work.
|
#9
|
|||
|
|||
Can you there wasn't any thing at sitepoint
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|