File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ $PHPDO = new PHPDO();
1818$PHPDO->connect("database-server.com", "database_name", "user_name", "myPassword123");
1919```
2020
21- #### Get instance
21+ ### Get instance
2222
2323** DB::getInstance()** returns PHPDO instance
2424``` php
@@ -31,7 +31,7 @@ DB::getInstance()->query("SELECT * FROM user")->fetchAll();
3131$PHPDO->getPdo();
3232```
3333
34- #### Run MySQL query
34+ ### Run MySQL query
3535
3636** query**
3737``` php
@@ -49,14 +49,14 @@ $PHPDO->execute("UPDATE user SET active = 0 WHERE mail IS NULL");
4949$PHPDO->prepare("SELECT id FROM user WHERE id = :userid", ["userid" => 553]);
5050```
5151
52- #### Helper
52+ ### Helper
5353
5454** Check table exists (MySQL only)**
5555``` php
5656$PHPDO->isTable("user_settings")
5757```
5858
59- ### Internal class logging
59+ ## Internal class logging
6060
6161All SQL Queries stored in PHPDO::$logs (array)
6262
You can’t perform that action at this time.
0 commit comments