Jump to content
Larry Ullman's Book Forums

philip381

Members
  • Posts

    1
  • Joined

  • Last visited

philip381's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am using PHP version 5.3.2 on Windows 7. I have a question pertaining to brackets. (), [], {}. On page 385, the edit_entry.php script, line 51 // Define the query. $query = "UPDATE entries SET title='$title', entry='$entry' WHERE entry_id={$_POST['id']}"; Why is $_POST['id'] encased in squiggly brackets? Elsewhere, line 41 and 42, for example, the $_POST['title'] is encased in simple (). Does the fact that the variable is being passed through the URL have anything to do with it? Or the fact that the entire SQL statement is enclosed in double quotes, thus requiring the "extra strength" squiggly line encasement? Thank you in advance for your answer.
×
×
  • Create New...