Hello im making a browser game and have 99% working but iv got one error i cant find / fix and would like to know if anyone can help me where im going wrong heres the error
this is where i would write but for the testing i did anything
here is the coding to the table in mysql
errors i get on page using
full code for this is attached below
been trying to fix this for a few weeks now
Code:
QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 0, '1', '2121221', '1212121', '12121', '12121', 1211, '121', 121)' at line 1 Query was INSERT INTO crimes (crimeNAME, crimeBRAVE, crimePERCFORM, crimeSUCCESSMUNY, crimeSUCCESSCRYS, crimeSUCCESSITEM, crimeGROUP, crimeITEXT, crimeSTEXT, crimeFTEXT, crimeJTEXT, crimeJAILTIME, crimeJREASON, crimeXP) VALUES( 'fdfdf', '1', '((WILL*0.8)/2.5)+(LEVEL/4)', '12', , 0, '1', '2121221', '1212121', '12121', '12121', 1211, '121', 121)
Code:
'12', , 0, '1', '2121221', '1212121', '12121', '12121', 1211, '121', 121
here is the coding to the table in mysql
Code:
CREATE TABLE `crimes` ( `crimeID` int(11) NOT NULL auto_increment, `crimeNAME` varchar(255) NOT NULL default '', `crimeBRAVE` int(11) NOT NULL default '0', `crimePERCFORM` text NOT NULL, `crimeSUCCESSMUNY` int(11) NOT NULL default '0', `crimeSUCCESSCRYS` int(11) NOT NULL default '0', `crimeSUCCESSITEM` int(11) NOT NULL default '0', `crimeGROUP` int(11) NOT NULL default '0', `crimeITEXT` int(11) NOT NULL default '0', `crimeSTEXT` int(11) NOT NULL default '0', `crimeFTEXT` int(11) NOT NULL default '0', `crimeJTEXT` int(11) NOT NULL default '0', `crimeJAILTIME` int(10) NOT NULL default '0', `crimeJREASON` varchar(255) NOT NULL default '0', `crimeXP` int(11) NOT NULL default '0', PRIMARY KEY (`crimeID`) ) ENGINE=MyISAM ;
Code:
<?php
error_reporting(E_ALL);
ini_set('display_errors', true);
Code:
Notice: Undefined index: HTTP_X_FORWARDED_FOR in /home/reddr431/public_html/smoke/header.php on line 111 Notice: Undefined index: attacking in /home/reddr431/public_html/smoke/header.php on line 120
been trying to fix this for a few weeks now
Comment