Hi.
This code doesn't work:
<?php
$link = mysql_connect("localhost","root",""
;
@mysql_select_db("blog"
or die( 'Unable to select database');
mysql_query( INSERT INTO 'entry' ( 'id' , 'title' , 'date' , 'content' ) VALUES ('1', 'the title', getdate(), 'some content - knarly' ) );
mysql_close();
?>
I get this error:
Parse error: syntax error, unexpected T_STRING in c:\wamp\www\scottsblog\insertentry.php on line 6
MyAdmin can access my databases fine, but I can't. I even copied and pasted that code for entring stuff from myadmin to test it with no result.
My files are in the www directory.
Please help!