Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

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

[es] :: PHP :: Call to a member function fetch_assoc() on a non-object in...

[ Pregleda: 3884 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Shevchenko
Nikola Vasiljevski

Član broj: 37756
Poruke: 218
*.26.eunet.yu.

Sajt: www.vasiljevski.com


+2 Profil

icon Call to a member function fetch_assoc() on a non-object in...06.08.2006. u 13:54 - pre 215 meseci
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?
Shoot for the moon. Even if you miss, you'll land among the stars.
Les Brown
 
Odgovor na temu

SmilieBG
Aleksandar Skodric
NL

Član broj: 13094
Poruke: 1821
*.speed.planet.nl.



+3 Profil

icon Re: Call to a member function fetch_assoc() on a non-object in...06.08.2006. u 15:20 - pre 215 meseci
http://php.mirrors.ilisys.com....unction.mysqli-fetch-assoc.php
=========
Uporedi cene i karakteristike za vise od 10.000 proizvoda, izmedju ostalog:
Digitalni foto-aparati
Mobilni telefoni
Skolski pribor
=========
 
Odgovor na temu

Shevchenko
Nikola Vasiljevski

Član broj: 37756
Poruke: 218
*.61.eunet.yu.

Sajt: www.vasiljevski.com


+2 Profil

icon Re: Call to a member function fetch_assoc() on a non-object in...06.08.2006. u 18:20 - pre 215 meseci
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
Shoot for the moon. Even if you miss, you'll land among the stars.
Les Brown
 
Odgovor na temu

voxi

Član broj: 67178
Poruke: 328
*.teol.net.



Profil

icon Re: Call to a member function fetch_assoc() on a non-object in...27.04.2007. u 19:50 - pre 206 meseci
Vdim da je vec odavno bila ova tema ali da te pitam da li si resio ovaj problem i kako posto se meni isto sada desava to????
 
Odgovor na temu

[es] :: PHP :: Call to a member function fetch_assoc() on a non-object in...

[ Pregleda: 3884 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.