classes:general:dbsamples:php_mysql
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| classes:general:dbsamples:php_mysql [2017/01/20 02:55] – localadmin | classes:general:dbsamples:php_mysql [2017/03/21 11:23] (current) – localadmin | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| // Make a connection to the database | // Make a connection to the database | ||
| // the values here MUST BE CHANGED to match the database and credentials you wish to use | // the values here MUST BE CHANGED to match the database and credentials you wish to use | ||
| - | |||
| $mysqli = new mysqli(" | $mysqli = new mysqli(" | ||
| if ($mysqli-> | if ($mysqli-> | ||
| Line 26: | Line 25: | ||
| if !($result) | if !($result) | ||
| { | { | ||
| - | echo "Query execution failed: (" . $mysqli-> | + |  | 
| } | } | ||
classes/general/dbsamples/php_mysql.1484880916.txt.gz · Last modified:  by localadmin
                
                