Jump to content
Killersites Forums

m2jalali

New Members
  • Posts

    4
  • Joined

  • Last visited

m2jalali's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thanks a lot Solved my problem.
  2. UNFORTUNATELY not solved my problem i thinks this line is my problem $stmt->bind_param("ss", $user, md5($pass . $this->salt)); thanks a lot
  3. Hi thanks when I login in my web site show this error <?php /* Authorization Class Deal with auth tasks */ class Auth { private $salt = 'j4H9?s0d'; /* Constructor */ function __construct() { } /* Functions */ function validateLogin($user, $pass) { // access db global $Database; // create query if ($stmt = $Database->prepare("SELECT * FROM users WHERE username = ? AND password = ?")) { $stmt->bind_param("ss", $user, md5($pass . $this->salt)); $stmt->execute(); $stmt->store_result(); // check for num rows if ($stmt->num_rows > 0) { // success $stmt->close(); return TRUE; } else { // failure $stmt->close(); return FALSE; } } else { die("ERROR: Could not prepare MySQLi statement."); } } function checkLoginStatus() { if (isset($_SESSION['loggedin'])) { return TRUE; } else { return FALSE; } } function logout() { session_destroy(); session_start(); } } my web browser Mozila firefox 8
  4. Hi when i login in php_oop_login_projectfiles show this error ( ! ) Strict standards: Only variables should be passed by reference in D:\xampp\htdocs\php_oop_login_projectfiles\models\m_auth.php on line 31 my database char set is UTF8 please guid me thanks INDEED your site is best and it is very fast I wish i had a site like http://www.killersites.com
×
×
  • Create New...