Hello, i have the following php code selecting user details from a mysql db
$mysql = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or die('There was a problem connecting to the database');
$stmt = $mysql->prepare('SELECT personalinfo.userid, personalinfo.firstname, personalinfo.lastname FROM personalinfo INNER JOIN applications ON personalinfo.userid = applications.userid WHERE applications.jobref = ?');
$stmt->bind_param('i',$jr);
$stmt->execute();
$stmt->store_result();
$stmt->bind_result($userID,$firstName,$lastName);
$count = $stmt->num_rows();
I have tested this code localy at it works fine, however when i try to test on a live server, i keep getting the following error "Fatal error: Call to a member function bind_param() on a non-object in C:\path\to\directory"
Thx in advance peeps,
Aaron
Any