Not 100% sure but this part does not look right to me. MySQL query should be formatted like the first section but I have never used sprintf try running raw commands trough phpmyadmin. Maybe turn this. INSERT INTO forum ( forum_category) VALUES ( %s) Into this. INSERT INTO `forum` ( `forum_category` ) VALUES ( '{%s}') Every professional I've seen uses the ` I never had any problems with or without it, but it might just work.
Code:
$insertSQL = sprintf("INSERT INTO forum ( forum_category) VALUES ( %s)", GetSQLValueString($_POST['forumcat'], "text"));
|