Skip to content

Commit

Permalink
Change Sql Field name because it's reserved
Browse files Browse the repository at this point in the history
  • Loading branch information
rmed19 committed Jul 28, 2015
1 parent d8950b2 commit 5daa5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ an individual blog result based on a given id::
$link = open_database_connection();

$id = intval($id);
$query = 'SELECT date, title, body FROM post WHERE id = '.$id;
$query = 'SELECT created_date, title, body FROM post WHERE id = '.$id;
$result = mysql_query($query);
$row = mysql_fetch_assoc($result);

Expand Down Expand Up @@ -297,7 +297,7 @@ the individual blog post:
<?php ob_start() ?>
<h1><?php echo $post['title'] ?></h1>

<div class="date"><?php echo $post['date'] ?></div>
<div class="date"><?php echo $post['created_date'] ?></div>
<div class="body">
<?php echo $post['body'] ?>
</div>
Expand Down

0 comments on commit 5daa5f8

Please sign in to comment.