+ 1
how to connect a database with php
2 Answers
+ 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