The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Where's the Database Error?
I get this error:
Code:
Database error in vBulletin Control Panel 2.2.6: Invalid SQL: SELECT userid FROM user WHERE username= wizard86 AND userid <> mysql error: You have an error in your SQL syntax near '' at line 1 mysql error number: 1064 Here's The Code (From the user.php file): Code:
if ($exists=$DB_site->query_first("SELECT userid FROM user WHERE username='".addslashes(htmlspecialchars($ausername))."' AND userid <> $userid")) { echo "There is already an ".makelinkcode('user',"user.php?do=edit&userid=$exists[userid]",1)." named <b>".htmlspecialchars($ausername)."</b>"; exit; } |
#2
|
||||
|
||||
shouldn't userid <> $userid be replaced by: userid='$userid'?
try this code instead then: PHP Code:
|
#3
|
||||
|
||||
I'll try it ... but that generally means the same thing (<>).
Thanks for responding! |
#4
|
||||
|
||||
That didn't work ... I got another error using that <> qualifer that pointed to "Check Not Removing Last Admin"
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|