Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [MySQL][PHP] Notice: Use of undefined constant
--atyll--
post
Post #1





Goście







Witam

Mam problem z moim skryptem PHP, otrzymuje te oto błędy:

Notice: Use of undefined constant remote_addr - assumed 'remote_addr' in C:\xamppp\htdocs\fetch.php on line 30
Notice: Use of undefined constant qid - assumed 'qid' in C:\xamppp\htdocs\fetch.php on line 53
Notice: Use of undefined constant qid - assumed 'qid' in C:\xamppp\htdocs\fetch.php on line 53
Notice: Use of undefined constant qid - assumed 'qid' in C:\xamppp\htdocs\fetch.php on line 53

Linia 30:
  1. $ip=getenv(remote_addr);


Linia 53:
  1. while($row=mysql_fetch_array($nx)){


Co mam nie tak? Jest ktoś w stanie pomóc?
Pozdrawiam
Go to the top of the page
+Quote Post
--atyll--
post
Post #2





Goście







Pomyłka, linia 53 to:
  1. $total_re=mysql_num_rows($total_results);
Go to the top of the page
+Quote Post
_Borys_
post
Post #3





Grupa: Zarejestrowani
Postów: 587
Pomógł: 190
Dołączył: 5.02.2011
Skąd: 64-800

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


w linii 30 co to ma być ten remote_addr ? Zmienna czy część tablicy superglobalnej ?
Pierwszy przykład getenv()
Go to the top of the page
+Quote Post
--atyll--
post
Post #4





Goście







Dodałem na górze kodu:


I po sprawie (IMG:style_emoticons/default/smile.gif)
Problem rozwiązany
Go to the top of the page
+Quote Post

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: 20.12.2025 - 17:17