Ok, i got this code which works fine in Windows but not in Ubuntu 11.04.
I got PHP 5.3.5 on both of those OS and same MySQL version.
My code
$dba_host='localhost';
$dba_name='root';
$dba_pass='';
$dba_db='sn';
$con=mysqli_connect($dba_host,$dba_name,$dba_pass,$dba_db) or die('Connection Refused !');
$stmt = mysqli_prepare($con, "SELECT UID,Name,Trace from LOGIN where email=? and password=? LIMIT 1"); // Line 50
mysqli_stmt_bind_param($stmt, "ss", $_POST['login'],$_POST['password']);
mysqli_stmt_execute($stmt);
mysqli_stmt_bind_result($stmt, $uid, $name, $trace);
mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
Error
Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given on line 50
Warning: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, boolean given on line 51
Warning: mysqli_stmt_bind_result() expects parameter 1 to be mysqli_stmt, boolean given line 52\
Warning: mysqli_stmt_fetch() expects parameter 1 to be mysqli_stmt, boolean given on line 53
Warning: mysqli_stmt_close() expects parameter 1 to be mysqli_stmt, boolean given on line 54
Additional INfo
I am the root user, and i can see the tables through phpMyAdmin
I found the error; PHP/MySQL in Ubuntu is not smart enough to find the table if the identifier’s case does not match. So table
LOGINandloginare completely different.