Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MYSQL] Select
DarkItachiPL
post
Post #1





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 26.06.2008

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


Witam.. Otóż mam taki błąd z select: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in E:\Server Files\Apache\WebServ\httpd\index.php on line 21

A mój kod wygląda tak:
  1. <?php
  2. $sql="SELECT * FROM nospam WHERE ip=$ip";
  3. $result=mysql_db_query($polaczenie,$sql);
  4. if ($row=mysql_fetch_row($result)) {
  5. body($nazwa,"<font color='red'>Przepraszamy, ale można stworzyć 1 forum na godzinę!</font>");
  6. }
  7. else {
  8. body($nazwa,$opis);
  9. }
  10. ?>


Pomocy!! (IMG:http://forum.php.pl/style_emoticons/default/wstydnis.gif) (IMG:http://forum.php.pl/style_emoticons/default/withstupidsmiley.gif) (IMG:http://forum.php.pl/style_emoticons/default/sciana.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 24.08.2025 - 12:42