The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Resource ID has us stumped!
Trying add a hack in that does user titles similiar to the way vb does, but where the user can pick the title group.
And fighting with the query.... first one I tried Code:
// ##### Start Secondary Titles ##### $sectitle = $DB_site->query("SELECT displaytext FROM " . TABLE_PREFIX . "secondarytitle where category = $post[sectitletype] AND $post[posts] >= minposts AND $post[posts] <= maxposts"); // ##### End Secondary Title ##### Gives a Resource ID. I tried the thing about making it query_first, but then it displays as Array =/ Any help would be appreciated Would prefer to do away with the maxposts field, but have no idea how to build or execute an array |
#2
|
||||
|
||||
Use $DB_site->query() when retrieving more than 1 row from your database. This returns a MySQL resouce ID, that can be used in mysql_fetch_array() within a while loop to iterate through rows.
e.g. PHP Code:
e.g. PHP Code:
|
#3
|
|||
|
|||
Thank you so very very much
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|