title: PHP Curl scraping script not inserting data into DB ('syntax error')
body: <p>I'm working on a PHP script with curl that logs into Google AdSense, scrapes a single string of data and inserts it into the database.</p>
  
  <p>It's almost there. The script setups up the table, logs into AdSense just fine and can echo the resulting data. But it's not inserting it into the DB, so I think it's just a simple case of some bad code between lines 80-87 (below):</p>
  
  <pre><code>"INSERT INTO $DB_TABLE (
  `id`, `earnings`, `gmt-plus-one`, `gmt-minus-eight`
  ) VALUES (
  NULL, '"
  . mysql_real_escape_string( $earnings ) . "', '"
  . mysql_real_escape_string( $gmtPlusOne ) . "', '"
  . mysql_real_escape_string( $gmtMinusEight ) . "' );" )
  or die( mysql_error() );
  </code></pre>
  
  <p>Entire code: <a href="http://cl.ly/4rH0" rel="nofollow">http://cl.ly/4rH0</a></p>
  
  <p>Any help is warmly appreciated. Sorry for being such a newb.</p>