Add missing php tags in examples
authorMatthias Schmidt <gravatronics@live.com>
Sat, 24 Dec 2016 08:22:25 +0000 (09:22 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 24 Dec 2016 08:22:25 +0000 (09:22 +0100)
pages/php/php_database-access.md

index 5f185ac6fd6386eb876bf68c975616e15a05800f..37ae84bca3e1240742973af9cc0dc0ef80af9a53 100644 (file)
@@ -82,6 +82,7 @@ $bar = $statement->fetchSingleColumn();
 Similar to fetching a single row, you can also issue a query that will select a single row, but reads only one column from the result row.
 
 ```php
+<?php
 $sql = "SELECT  bar
         FROM    wcf".WCF_N."_example
         WHERE   exampleID = ?";
@@ -190,6 +191,7 @@ foreach ($data as $bar) {
 It is generally advised to wrap bulk operations in a transaction as it allows the database to optimize the process, including fewer I/O operations.
 
 ```php
+<?php
 $data = [
     1 => 'abc',
     3 => 'def',