The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Mysql burping with " symbols
Hopefully someone can help me out before I lose my hair
I've got this insert string and unfortunately when a " is used in the newtitle it stops the query then. For example if you put asd"fgh it'll only put asd into the database and ignore the rest. Here is the query I'm using Code:
$db->query_write("INSERT INTO " .TABLE_PREFIX. "title_wars ( newtitle, attacker, victim, attackerid, victimid ) VALUES ( '". $db->escape_string($_POST['newtitle'])."', '" . $db->escape_string($_POST['attacker']) . "', '" . $db->escape_string($_POST['victim']) . "', '" . $db->escape_string($vbulletin->userinfo['userid']) . "', '" . $db->escape_string($_POST['victimid']) . "' )"); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|