mirror of
https://github.com/sigmasternchen/webcli
synced 2025-03-15 22:28:54 +00:00
we want to use mysqli
This commit is contained in:
parent
32d8c6ee55
commit
138d69ef3f
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
$connection = mysql_connect("localhost", "webcli", "password");
|
$db = new mysqli("localhost", "webcli", "password", "webcli");
|
||||||
mysql_select_db('webcli');
|
if ($db->connect_error)
|
||||||
echo mysql_error();
|
die("Connect Error (" . $db->connect_errno . ") " . $db->connect_error);
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue