The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Query not returning right..
This really is a simple noob error (I think), I am probaly not using mysql_fetch_array right. - just to clarify, looks a lot bigger than it really is
I am apparently selecting a string array wrong. Of the two used fields, one CatID should always be 52, and the Words 'This', 'Is', 'A', 'Category', but it gives weird 1 character results. The same query put into phpMyAdmin displays properly. PHP Code:
Code:
query SELECT * FROM dub_catWords WHERE worth = '1' word 3 catID 3 word 5 catID 5 word n catID n word 1 catID 1 Code:
word this catID 52 word is catID 52 word a catID 52 word category catID 52 |
#2
|
|||
|
|||
PHP Code:
|
#3
|
|||
|
|||
Could you explain? Not disagreeing just I am curious. That would mean extra function calls wouldn't it?
PS: It works. |
#4
|
|||
|
|||
I am not really for sure, sorry but you can read about the mysql_fetch_array here. Maybe you will find your answer there.
|
#5
|
||||
|
||||
mysql_fetch_array() fetches the results as an array. And the while construct loops through the array until it ends.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|