I am working on lesson 22 on the learnphpfree.com site:
http://www.learnphpfree.com/lesson-22-s ... -vt97.htmlThe lesson had me type this line of PHP code:
Code:
$query = 'INSERT INTO `contacts` (`name`, `phone`, `address`)
VALUES (\'Bob\', \'999-555-5555\', \'TX\');';
When I originally typed it in I used this to surround the fields: '
But my code would not run. Then I tried using this instead: `
But my code still would not run.
Then, I did a copy and paste directly from the code entered on the tutorial and my code ran.
Why would this be, and which quote keys am I supposed to use where?