The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
changed order by, now this
ok i changed ORDER BY from DESC to ASC and now nothing shows up! why is it doing that! damn u php!!!!
|
#2
|
||||
|
||||
What's the exact code you're using?
|
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
ok chill, i get no error messages just nothing shows
PHP Code:
|
#5
|
||||
|
||||
anyone?
|
#6
|
||||
|
||||
please anyone?
|
#7
|
||||
|
||||
?????
|
#8
|
||||
|
||||
Do you mean the result is blank, or that it's not ordering the way you want it to?
Also never EVER place queries within a mysql_fetch_array loop, unless you want to call massive amounts of un-needed queries on your page. A simple LEFT JOIN in your first query can solve this. Oh, if you had released this as a hack, people would get pissed to find out you left it easily open to MySQL injection. Never insert a direct $_REQUEST/$_GET/$_POST into a query, one could exit the query and call another statement to do malicious things, like drop your database. The vBulletin globalize() function is the first step to securing variables, and the second is to use addslashes() on ANY STRING VARIABLE inside a query. Also, it's unnecessary to put single quotes around integer values in a SQL string. Reserve them for strings. Bad: PHP Code:
PHP Code:
|
#9
|
||||
|
||||
oh didnt know i could do that with globalize, thanks
|
#10
|
||||
|
||||
im getting an mysql error using that code you gave me
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|