Skip to content

Commit

Permalink
Merge pull request #79 from mmikeww/patch-1
Browse files Browse the repository at this point in the history
correct variable name in sample code
  • Loading branch information
Sama34 committed Oct 22, 2015
2 parents e52d066 + 7764b25 commit 041a2dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 1.8/development/standards.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Should be written as:

{% highlight php startinline %}
$result = $db->query(“SELECT * FROM table”);
$row = $db->fetch_array($query);
$row = $db->fetch_array($result);

if($row && $example == 1)
{
Expand Down Expand Up @@ -398,4 +398,4 @@ $db->delete_query('table', 'condition1=value1');

### Sanitization

Before any data, values, or variables are used within a query, they must be adequately escaped or formatted to their required value for that column. In some cases, this may mean typecasting the value to an integer or calling the `escape_string()` method of the database class to sanitize (escape) the content of a string.
Before any data, values, or variables are used within a query, they must be adequately escaped or formatted to their required value for that column. In some cases, this may mean typecasting the value to an integer or calling the `escape_string()` method of the database class to sanitize (escape) the content of a string.

0 comments on commit 041a2dd

Please sign in to comment.