Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dziwny błąd SQL!
eunix
post
Post #1





Grupa: Zarejestrowani
Postów: 85
Pomógł: 0
Dołączył: 22.02.2006

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


Gdy wchodze na strone to pokazuje błąd:
  1. Warning: mysql_fetch_array(): supplied argument IS NOT a valid MySQL result resource IN /home/unix23/public_html/ss/ostatnie.php ON line 7


ten plik wygląda tak:
  1. <?php
  2.  
  3. require_once('config.php');
  4.  
  5. $query = "SELECT * FROM php_news ORDER BY news_date DESC";
  6. $result = @mysql_query ($query);
  7. while ($row = mysql_fetch_array ($result)) {
  8. if ($result) {
  9. echo '<p class="MA">' . $row['news_title'] . "<br><br></p>";
  10. } 
  11. }
  12. ?>
Go to the top of the page
+Quote Post

Posty w temacie


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: 19.08.2025 - 10:15