this script works fine on Local Host and Other free Hosting but not on "host Gator "it should be " PHP.ini " Any Help !?!?
function.php
<?php
    date_default_timezone_set("America/Chicago");
    echo date("Y/m/d H:i:s");
function consql($con){
    $con=mysqli_connect("host","BDusername","DBPassWord","DB") or die( mysqli_error($con));}
?>
index.php
line #1 "Very top "
<?php
SESSION_START();
require_once"inc/function.php";
consql($con);
?>
line#12
  <?php
    if(isset($_SESSION['user']))
    {
        header("location:users.php");
    }
    elseif(isset($_POST['submit']))
    {
        $result=mysqli_query("select user_id,password from user_login where name='$_POST[username]'")     or die(mysqli_error($con)); // ** line # 19 ** //
        $n=mysqli_fetch_assoc($result);
        if($n['password']!=$_POST['userpassword'])
        {
          echo "user name or password wrong";
        }
        else
        {
          echo "you loged in as $_POST[username]";
          $_SESSION['user']=$n['user_id'];
          header("location:users.php");
        }
    }
    else 
I'm new to mysqli and looked up here for same error but didn't get the point on most of them.
 
     
     
     
    