The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
Hmm I tried this
Code:
$_POST['newtitle'] = addslashes($_POST['newtitle']); $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']) . "' )"); Code:
$_POST['newtitle'] = addslashes($_POST['newtitle']); $db->query_write("INSERT INTO " .TABLE_PREFIX. "title_wars ( newtitle, attacker, victim, attackerid, victimid ) VALUES ( '".$_POST['newtitle']."', '" . $db->escape_string($_POST['attacker']) . "', '" . $db->escape_string($_POST['victim']) . "', '" . $db->escape_string($vbulletin->userinfo['userid']) . "', '" . $db->escape_string($_POST['victimid']) . "' )"); ![]() Course, i've also tried using '" . addslashes($_POST['newtitle'])."', in the db query too and no luck ![]() I kinda stumble around til it works so I may be completely misunderstanding you hehe. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|