summaryrefslogtreecommitdiffstats
path: root/samples/tree/06_validation.html
diff options
context:
space:
mode:
authorMaksim Kozhukh <mkozhukh@ya.ru>2014-08-05 15:05:01 +0300
committerMaksim Kozhukh <mkozhukh@ya.ru>2014-08-05 15:05:01 +0300
commita3f61f91ca50598de2126ea0864b3acc7f56a847 (patch)
treee858faa1effc6729d7e02d1464f51cd768088f01 /samples/tree/06_validation.html
parent4fc1e6da2aaf2e9c47c31b2b4d247c3ed99dc9d2 (diff)
downloadconnector-php-a3f61f91ca50598de2126ea0864b3acc7f56a847.zip
connector-php-a3f61f91ca50598de2126ea0864b3acc7f56a847.tar.gz
connector-php-a3f61f91ca50598de2126ea0864b3acc7f56a847.tar.bz2
[update] pdo based samples
Diffstat (limited to 'samples/tree/06_validation.html')
-rw-r--r--samples/tree/06_validation.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/tree/06_validation.html b/samples/tree/06_validation.html
index 6951c00..0678338 100644
--- a/samples/tree/06_validation.html
+++ b/samples/tree/06_validation.html
@@ -33,7 +33,7 @@
<div class='code'><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">require_once(</span><span style="color: #DD0000">"../config.php"</span><span style="color: #007700">);
-<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB">mysql_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">);
+<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$res</span><span style="color: #007700">=</span><span style="color: #0000BB"> new PDO</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_server</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_user</span><span style="color: #007700">,</span><span style="color: #0000BB">$mysql_pass</span><span style="color: #007700">);
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mysql_select_db</span><span style="color: #007700">(</span><span style="color: #0000BB">$mysql_db</span><span style="color: #007700">);
<br />
<br />&nbsp;&nbsp;&nbsp;require(</span><span style="color: #DD0000">"../../codebase/tree_connector.php"</span><span style="color: #007700">);