The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[solved] php/mysql issue
as my initial question in my previous issue was solved i decided to open a new thread to avoid hijacking my own thread.
this is only part of the code, but im having issues getting this to work with vbulletin PHP Code:
|
#2
|
|||
|
|||
Can't test it, but this should work:
PHP Code:
- Look at the functions of the vB_Database class in /includes/class_core.php, you will see what all the functions do and what parameters they require. - query_first only returns the first row of the query, so it can not be used in this case since you want to loop through all of the results. - Always escape PHP variables outside of the quotes, makes it easier to debug and to overview code. - Write SQL syntax with uppercase characters. - Only set new variables if you absolutely have to, makes code cleaner. |
3 благодарности(ей) от: | ||
Dr.CustUmz, Lynne, MarkFL |
#3
|
||||
|
||||
PERFECT!! and thanks for the tips, still learning so it all helps =)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|