Skip to content
Newer
Older
100644 15 lines (10 sloc) 645 Bytes
0861b87 @gonzalo123 first commit
authored May 20, 2012
1
2 We start the server:
3 php db.php
4
5 Simple example (fetchAll)
6 php example1.php
b6e7649 @gonzalo123 README
authored May 20, 2012
7 [{"uid":0,"0":0,"name":"Gonzalo","1":"Gonzalo","surname":"Ayuso","2":"Ayuso"},{"uid":1,"0":1,"name":"Hans","1":"Hans","surname":"Solo","2":"Solo"},{"uid":2,"0":2,"name":"Luke","1":"Luke","surname":"Skywalker","2":"Skywalker"}]
0861b87 @gonzalo123 first commit
authored May 20, 2012
8
9 We parse the SQL and create a new statement
10 php example2.php
11
12 We execute our prepared statement
13 php example3.php
b6e7649 @gonzalo123 README
authored May 20, 2012
14 [{"uid":0,"0":0,"name":"Gonzalo","1":"Gonzalo","surname":"Ayuso","2":"Ayuso"},{"uid":1,"0":1,"name":"Hans","1":"Hans","surname":"Solo","2":"Solo"},{"uid":2,"0":2,"name":"Luke","1":"Luke","surname":"Skywalker","2":"Skywalker"}]
Something went wrong with that request. Please try again.