EquinoxWorld
08-24-2013, 05:16 PM
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:
$vbulletin->db->query_write("INSERT INTO 'table' ('column') VALUES ('".$vbulletin->userinfo['username']."')");
Every time I get a (1064) database error.
Am I missing anything here?? Thanks 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:
$vbulletin->db->query_write("INSERT INTO 'table' ('column') VALUES ('".$vbulletin->userinfo['username']."')");
Every time I get a (1064) database error.
Am I missing anything here?? Thanks everyone.