I just needed a confitmation before i test this...
Which i did just now, and it works...
I would like to continue this topic with another problem, i have log in page, and it works on my localhost. When i put it on web i am getting:
PHP Code:
Fatal error: Class 'mysqli' not found in /******/Mysql.php on line 9
Mysql.php looks like this:
PHP Code:
<?php
require_once 'includes/constants.php';
class Mysql {
private $conn;
function __construct() {
$this->conn = new mysqli(DB_SERVER, DB_USER, DB_PASSWORD, DB_NAME) or
die('There was a problem connecting to the database.');
}
function verify_Username_and_Pass($un, $pwd) {
$query = "SELECT *
FROM users
WHERE username = ? AND password = ?
LIMIT 1";
if($stmt = $this->conn->prepare($query)) {
$stmt->bind_param('ss', $un, $pwd);
$stmt->execute();
if($stmt->fetch()) {
$stmt->close();
return true;
}
}
}
}
Maybe i need to use same hack to
make server use php5? What do i need to put into htaccess for that?