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
 
Start new topic
Odpowiedzi
DarkItachiPL
post
Post #2





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

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


Something is wrong in your syntax obok '.0.1' w linii 1

Takie cuś ;]

//Edit: Ok, Thx! Działa! Zapomniałem o '' ;]

Ten post edytował DarkItachiPL 26.06.2008, 19:54:59
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: 7.10.2025 - 23:16