The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm working on a major game development project (fully vB integrated) for my site, and I'm having a problem getting a couple of functions to work.
The first one here fetches the info for a given team. I did some testing (echoed variables), and I found that while the $userid variable was set properly, the query following it wasn't functioning as designed (i.e. it returns nothing). PHP Code:
PHP Code:
Sorry if these are stupid questions guys. Haven't exactly had any formal training in MySQL or PHP, been basically learning on my own for the last two months or so (have experience with Java and RESOLVE/C++) through trial and error. Thanks for any help ![]() EDIT: Should mention, all of the above is programmed for 3.5 RC1 -RD |
#2
|
|||
|
|||
![]()
I think it has to do with
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
![]()
If you have only row that fullfills the WHERE clause, you should use query_first instead of query_read (and not 'query' like LV suggested :P 'query' is depreciated and should be replaced by either query_read or query_write).
The 'read' in query_read only means that this query will not change any data (query_write), it is not fetching the results. If you have more rows that will be returned, use the following construct: PHP Code:
|
#4
|
|||
|
|||
![]()
I feel stupid now. Thanks Marco, really appreciate it man
![]() -RD |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|