The Arcive of vBulletin Modifications Site. |
|
Confused in how to perform this Query-ing .. Details »»
|
|||||||||||||||||||||||||
PHP Code:
Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
This is the DB structure :
PHP Code:
|
|
#3
|
||||
|
||||
|
i want to display the results as follows :
Cat 1 name - link1 belonging to cat 1 - link2 belonging to cat 1 Cat 2 name - link3 belonging to cat 2 - link4 belonging to cat 2 Currently, the 'links_catbit' template displays info in the following format : Cat name - link belonging to cat - link belonging to cat - .... But with the above code , I only manage to display the results for the 1st cat in my tables. How can i display all of them ? Any help is greatly appreciated
|
|
#4
|
||||
|
||||
|
anyone ?
|
|
#5
|
||||
|
||||
|
Moved upon request
|
|
#6
|
||||
|
||||
|
No help at all ?
|
|
#7
|
||||
|
||||
|
Try this:
PHP Code:
|
|
#8
|
||||
|
||||
|
Thanks for the reply Lesane,
however in my template i do not have a $row variable. This is the code i am now using ( still DOESNT work ) PHP Code:
links_catbit PHP Code:
links_linkbit PHP Code:
|
|
#9
|
||||
|
||||
|
Its some error in the looping i think , because each category is showing more links than there is supposed to be in that respective category.
|
|
#10
|
||||
|
||||
|
Not a good idea to loop a query
|
![]() |
|
|