Quote:
Originally Posted by ogden2k
I have a chatbox that allows you to enter a text message into a table in the vB DB. The issue that I am having is that if an account has a tick they receive an error message and cannot use the CB.
How in PHP do I set it so that MySQL ignores that tick? Please let me know if you need to see the PHP code.
|
old way:
addslashes($userinfo['username'])
new way:
$vbulletin->db->escape_string($vbulletin->userinfo['username'])
anyway really u shud be storing userid in the table.
Data normalization or whatever.