+ 1
How to connect PHP with darabase?
I want to connect my PHP form with my database in xamp server
3 Antworten
+ 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').
0
or pdo. $db = new PDO($dsn,$usrname,$pwrd,$options);
0
thankyou, i'll try that