Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MYSQL] mysql_fetch_assoc() błędy
gg1985
post
Post #1





Grupa: Zarejestrowani
Postów: 174
Pomógł: 3
Dołączył: 23.02.2008

Ostrzeżenie: (0%)
-----


Witam

Przy wykonywaniu takiego kodu:

  1. <?php
  2. $dbhost = "localhost";
  3. $dbuser = "***";
  4. $dbpassword = "***";
  5. $dbdatabase = "phpbb_topics";
  6.  
  7. $db = mysql_connect($dbhost, $dbuser, $dbpassword);
  8. mysql_select_db($dbdatabase, $db);
  9. $sql = "select * from 'phpbb_topics' order by topic_id desc limit 1";
  10. $wykonaj = mysql_query($sql);
  11. $row = mysql_fetch_assoc($wykonaj);
  12. echo $row;
  13. ?>


Dostaje taki błąd:

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource

Co robie źle ?


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- gg1985   [MYSQL] mysql_fetch_assoc() błędy   18.02.2009, 11:41:23
- - nospor   nie: 'phpbb_topics' a: `phpbb_topics...   18.02.2009, 11:44:03


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 11:28