i'm parsing some cs logs
and my mysql statement is failing
there's the line i'm inserting[ADMIN] (centersayex) The name (1)Player is not allowed on this server. You name has been changed to: -=[No*Skillz]=-How'd_you_do_that
theres the errorYou have an error in your SQL syntax near 'you_do_that','L0929017.log')' at line 1
Code: Select all
//$this_line_data = mysql_escape_string($this_line_data);
$this_line_data = addslashes($this_line_data);
mysql_query("INSERT INTO logs (`line`)VALUES('".$this_line_data."')") or die(mysql_error());But they're not working.
.. or at least on this line they're not working.
The code has already inserted 4000+ records, but for some reason it fails on this line.