+ 1
how to connect a database with php
2 odpowiedzi
+ 6
Hope this thread will be helpful for you😊😊 :
https://www.cloudways.com/blog/connect-mysql-with-php/amp/
Thanks
+ 1
you can either do it the imperative way or the object oriented way. for simplicity ill explain the imperative way
$con=mysqli_connect(‘serverName’, ‘username’, ‘password’, ‘databaseName’)
if on a local server, server name = ‘localhost’,
username is usually ‘root’
this is the easy part