// This statement below inserting one field works:
// mysql_query("IN SERT INTO page (page_url) VALUES (\"$url_field\" )");
But I wanted to insert into two fields so I was trying all sorts of
escaping. See below...there must be an easier way?! I also cite the
syntax error - Thanks very much.
mysql_query("IN SERT INTO page (page_url, title) VALUES
( \"$url_inser t . "\", "." \"$title_fie ld "." "\")");
I don't understand how to escape but I got to believe there's an easier
way? Thanks!
Error message
C:\Program Files\Apache Group\Apache2\h tdocs>php -l populate2.php
<br />
<b>Warning</b>: Unexpected character in input: '\' (ASCII=92) state=1
in <b>C:\Program Files\Apache Group\Apache2\h tdocs\populate2 .php</b> on
line <b>56</b><br />
<br />
<b>Parse error</b>: parse error, unexpected T_CONSTANT_ENCA PSED_STRING
in <b>C:\Program Files\Apache Group\Apache2\h tdocs\populate2 .php</b> on
line <b>56</b><br />
Errors parsing populate2.php
Comment