Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MYSQL]Zapytanie..
kajzur
post
Post #1





Grupa: Zarejestrowani
Postów: 385
Pomógł: 26
Dołączył: 22.03.2008
Skąd: TM

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


Co jest źle w tym zapytaniu? O.o

  1. $file = $b->query("Select * from `pages` where `idusr` != '$id' and `activ` = 1");


PS. Mysql_error() nic nie daje.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kajzur
post
Post #2





Grupa: Zarejestrowani
Postów: 385
Pomógł: 26
Dołączył: 22.03.2008
Skąd: TM

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


  1. <?
  2.  
  3. include ("class.php");
  4. include("phpm/class.phpmailer.php");
  5.  
  6.  
  7. $l = new logs();
  8. $b = new baza($l);
  9.  
  10. $id = $_SESSION["ID"];
  11. echo $id;
  12. $file = $b->query("Select * from `pages` where `idusr` NOT IN($id) and `activ` = 1");
  13. $b->blad();
  14. $ch = curl_init();
  15. while($file1 = mysql_fetch_row($file))
  16. {
  17. curl_setopt($ch, CURLOPT_URL, $file1[0]);
  18. curl_setopt($ch, CURLOPT_HEADER, 0);
  19. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20. $ch_zawartosc = curl_exec($ch);
  21. echo $ch_zawartosc;
  22. sleep(20);
  23. }
  24. curl_close($ch);
  25.  
  26.  
  27.  
  28. ?>

Hm, nadal nic ;> Co ciekawe (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ogólnie jak ja mogłem zapomnieć co zwraca mysql_fetch_row (IMG:http://forum.php.pl/style_emoticons/default/smile.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.12.2025 - 15:04