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%)
-----


Kod
<?
session_start();

include ("class.php");
include("phpm/class.phpmailer.php");


$l = new logs();
$b = new baza($l);

$id = $_SESSION["ID"];
echo $id;
$file = $b->query("Select * from `pages` where `idusr` != '$id' and `activ` = 1");
$b->blad();
$ch = curl_init();
while($file = mysql_fetch_row($file));

{
curl_setopt($ch, CURLOPT_URL, $file);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ch_zawartosc = curl_exec($ch);
echo $ch_zawartosc;
sleep(20);
}
curl_close($ch);









?>


Cały skrypt..

Ten post edytował kajzur 20.05.2009, 18:08:15
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: 28.12.2025 - 03:43