Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

Call to a member function fetch_assoc() on a non-object in...

Call to a member function fetch_assoc() on a non-object in... 06.08.2006. u 14:54 · pre 247 meseci #1
Gde sam pogresio u podesavanjima???

Apache 2.2
php 5.1.4
mysql 5.0
Win XP SP2

Code:

<?

$mysqli = new mysqli('localhost','root','admin');
$mysqli->select_db('demo');

$result = $mysqli->query("SELECT * FROM members");

while($row = $result->fetch_assoc()) {
    print $row['firstName'] . ' ' . $row['lastName'] . '<br/>';    
}

$result->close();

?>


Uvek izbaci : Fatal error: Call to a member function fetch_assoc() on a non-object in c:\webs\test\testmysql5.php on line 8
Zasto?
Potpis
Shoot for the moon. Even if you miss, you'll land among the stars.
Les Brown
Re: Call to a member function fetch_assoc() on a non-object in... 06.08.2006. u 19:20 · pre 247 meseci #3
Pogledao sam tu stranicu, ali ovaj kod je iz tutorijala http://www.tanguay.at/installP...3e54c6c85e90d029b8e86a1a73a1ab
Sve sam uradio kako tamo pise, ali meni stalno pokazuje gore navedenu poruku
Potpis
Shoot for the moon. Even if you miss, you'll land among the stars.
Les Brown
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme