I am new to php
and have been following a tutorial to build a php mysql hit counter
my code for connect.inc.php
<?php
$conn_error = "could not connect";
$mysql_host= "localhost";
$mysql_user = "root";
$mysql_pass ="";
$mysql_db ="a_database";
$conn = mysqli_connect($mysql_host,$mysql_user,$mysql_pass,$mysql_db);
/*if(!mysqli_connect($mysql_host,$mysql_user,$mysql_pass) && !mysqli_select_db($mysql_db)){
die($conn_error);
}
*/
if(!$conn){
die("Connection...
PHP:
from PHP https://ift.tt/33YblGc
via IFTTT
0 Comments