Author Topic: Can anyone give mi the connectivity code for PHP?  (Read 127 times)

Offline Lee

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Can anyone give mi the connectivity code for PHP?
« on: November 17, 2016, 07:04:54 PM »
Hello everyone, I would like to ask you if you can tell me can anyone give mi the connectivity code for php? Thank you please reply to the message!



Offline Vincent

  • 1
  • Newbie
  • *
  • Posts: 0
  • Karma: +0/-0
    • View Profile
Re: the connectivity code for PHP?
« Reply #1 on: January 09, 2018, 06:38:33 PM »
PHP will require that mysqli is enabled (it is on most PHP set ups).

<?php
//Step1
 $db = mysqli_connect('localhost','username','password','database_name')
 or die('Error connecting to MySQL server.');
?>

<html>
 <head>
 </head>
 <body>
 <h1>PHP connect to MySQL</h1>
</body>
</html>


 

Sitemap 1 2 3 4 5 6 7 8 9