+ 1

How can i connect to data base mysql by sqli functions

11th Aug 2017, 6:28 AM
‎ضياء البشري محمد الحسن‎
‎ضياء البشري محمد الحسن‎ - avatar
4 Antworten
+ 4
Have a look at this example from PHP manual: http://php.net/manual/en/function.mysqli-connect.php Hth,
11th Aug 2017, 6:35 AM
Ipang
+ 2
thank you 😊
26th Aug 2017, 5:28 AM
‎ضياء البشري محمد الحسن‎
‎ضياء البشري محمد الحسن‎ - avatar
+ 1
You're welcome. Good luck.
26th Aug 2017, 5:33 AM
Ipang
0
<?php $servername = "localhost" ; $username = "username" ; $password = "password" ; $dbname = "myDB" ; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die( "Connection failed: " . $conn->connect_error); } ?>
6th Sep 2017, 4:23 PM
Abdalghani Omer
Abdalghani Omer - avatar