+ 1

How to connect PHP with darabase?

I want to connect my PHP form with my database in xamp server

11th Jan 2017, 1:45 PM
oki sulton
oki sulton - avatar
3 odpowiedzi
+ 5
$hatsyrei = $mysqli_connect('Your host, in this case it's localhost', 'Your name', 'Your password', 'Your default database') I'm using XAMPP too. You need to configure or create a new user account for yourself first so that you can fill in the credentials to have access on MySQL. Mine is $mysqli_connect('localhost', 'cheeze', 'pass123', 'myDatabase').
11th Jan 2017, 2:31 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
or pdo. $db = new PDO($dsn,$usrname,$pwrd,$options);
11th Jan 2017, 3:54 PM
Louis Milotte
Louis Milotte - avatar
0
thankyou, i'll try that
12th Jan 2017, 5:47 AM
oki sulton
oki sulton - avatar