PhpxZ Posted July 2, 2010 Share Posted July 2, 2010 this is my line if (mysql_query('INSERT INTO `pendingchars` (`accid`,`charname`,`sex`,`age`,`pgmg`,`dmrktt`,`history`,`carcrashrp`,`carscrash`) VALUES ('. $_SESSION['Logged'] .',\''. $_POST['charname'] .'\','. $_POST['sex'] .'\','. $_POST['age'] .',\''. $_POST['pgmg'] .'\',\''. $_POST['dmrktt']. '\',\''. $_POST['history'] .'\',\''. $_POST['carcrashrp'] .'\',\''. $_POST['carscrash'] .'\')', $con)) { i get a mysql error I dont know why.. i just added the "sex" in it.. it's something with that. I have all the rows and lines in the Mysql Link to comment https://forums.phpfreaks.com/topic/206477-mysql-error/ Share on other sites More sharing options...
Cagecrawler Posted July 2, 2010 Share Posted July 2, 2010 You missed out a single quote in front of the sex variable. Try this: if (mysql_query('INSERT INTO `pendingchars` (`accid`,`charname`,`sex`,`age`,`pgmg`,`dmrktt`,`history`,`carcrashrp`,`carscrash`) VALUES ('. $_SESSION['Logged'] .',\''. $_POST['charname'] .'\',\''. $_POST['sex'] .'\','. $_POST['age'] .',\''. $_POST['pgmg'] .'\',\''. $_POST['dmrktt']. '\',\''. $_POST['history'] .'\',\''. $_POST['carcrashrp'] .'\',\''. $_POST['carscrash'] .'\')', $con)) { Link to comment https://forums.phpfreaks.com/topic/206477-mysql-error/#findComment-1080077 Share on other sites More sharing options...
PhpxZ Posted July 2, 2010 Author Share Posted July 2, 2010 Thanks you Link to comment https://forums.phpfreaks.com/topic/206477-mysql-error/#findComment-1080080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.