added missing starting php tag

This commit is contained in:
Peter Kokot
2014-12-07 02:13:07 +01:00
parent a7f0c7c18d
commit 7308a712b8

View File

@@ -32,6 +32,7 @@ rushed later on.
many different databases. For example, you can use basically identical code to interface with MySQL or SQLite: many different databases. For example, you can use basically identical code to interface with MySQL or SQLite:
{% highlight php %} {% highlight php %}
<?php
// PDO + MySQL // PDO + MySQL
$pdo = new PDO('mysql:host=example.com;dbname=database', 'user', 'password'); $pdo = new PDO('mysql:host=example.com;dbname=database', 'user', 'password');
$statement = $pdo->query("SELECT some\_field FROM some\_table"); $statement = $pdo->query("SELECT some\_field FROM some\_table");