mySQL / özel bağl konular

0 Cevap php

I'm having some issues with a 1&1 account a client of mine is hosted with. I'm getting errors on lines 2 & 20 (denoted as bold below), which doesn't make sense as they're basic php functions.

Ben bu 1 & 1 hesapta koyarak kadar, hiçbir sorunları ile zaman bu aynı senaryo onlarca kullandım. Herkes eksik olabilir şey görecek mi?

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.'); }

fonksiyonu 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();

Şimdiden teşekkürler!

EDIT:

teşekkürler burada hataları koymak hatırlattığın için pinkgothic>. <

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/24/d100728/htdocs/members/classes/Mysql.php on line 6

^ Özel sınıf için şu

Fatal error: Call to a member function on a non-object in /homepages/24/d100728/htdocs/members/classes/Mysql.php on line 20

Özel hat çıkışı yorumladı zaman ^, giriş ekranını ulaşmak ancak sunulması bu hatayı almak mümkün im.

Ayrıca, veritabanı MySQL5.0 çalışıyor.

0 Cevap