Whats wrong with this sql line? mysql_query("INSERT INTO data (id,title,post) VALUES (NULL, $preg_title,$preg_matchedslash)") or die(mysql_errno()); PHP:
try the following below, values ('', will be inserted as mysql id if that is what your attempting? hope it helps! mysql_query("INSERT INTO data ( id , title , post ) VALUES ('', '".$preg_title."', '".$preg_matchedslash."' )") or die(mysql_errno()); PHP: