![]() |
[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:
|
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. :) |
PERFECT!! and thanks for the tips, still learning so it all helps =)
|
All times are GMT. The time now is 03:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|