The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Database query help
Hello everyone,
It's been a while since I coded anything and I was wondering what's wrong with this code snippet. I'm trying to insert a username of a member into a certain column in a table in the database. I'm using this code: PHP Code:
Am I missing anything here?? Thanks everyone. |
#2
|
|||
|
|||
The quotes around the table name and column name should be backquotes and not apostrophes (single quotes). Also, you should use the escape_string() function on the username before including it, or else if a username has a special character it will cause an error. So maybe this:
PHP Code:
|
#3
|
|||
|
|||
That worked perfectly thanks kh99.
|
#4
|
||||
|
||||
You dont need the backticks, you could remove them completely.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|