Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Refresh Bannerow nie dziala
scooter
post 16.04.2004, 23:34:42
Post #1





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 13.03.2004

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


Banery nie chca mi sie zmieniac w iframe - nie wiem dlaczego
jak odpale sam plik z kodem to dziala a jak przez inny plik w iframe juz nie!! pomocy!!!


[php:1:492e218f13]<?php
<meta http-equiv="Refresh" content="5; URL=proba.php">

include "./common_db.inc";

$lind_id = db_connect($default_dbname);
$query = "SELECT banner_nazwa from banner where banner_flag='1'";
$result = mysql_query($query) or die ("Zapytanie zakończone niepowodzeniem");

$ilosc = mysql_num_rows($result);

$i=1;
while($nazwy = mysql_fetch_row($result)) {
$gif[$i] = $nazwy[0];
$i++;
}

$random1 = rand(1,$ilosc);
?><center><?
echo "<img src="$gif[$random1]">";
?>

?>[/php:1:492e218f13]
Go to the top of the page
+Quote Post
eS...
post 17.04.2004, 00:45:38
Post #2





Grupa: Zarejestrowani
Postów: 367
Pomógł: 2
Dołączył: 4.03.2003
Skąd: C:/Windows/Temp

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


może pokaż kod z iframe?? co dajesz w srcquestionmark.gif


--------------------
Go to the top of the page
+Quote Post
scooter
post 17.04.2004, 10:00:19
Post #3





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 13.03.2004

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


[php:1:ba469ec889]<?php
<html>
<body>
<center>
<H3>Portal</H3>
<p><iframe name="I1" width="420" height="80" src="./banner/proba.php" scrolling="no"
border="0">
</center>
</body>
</html>

?>[/php:1:ba469ec889]
Go to the top of the page
+Quote Post
scooter
post 20.04.2004, 16:44:16
Post #4





Grupa: Zarejestrowani
Postów: 16
Pomógł: 0
Dołączył: 13.03.2004

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


Mam taki plik proba.php

[php:1:321075b29e]<?php
<?php
<meta http-equiv="Refresh" content="5; URL=proba.php">

include "./common_db.inc";

$lind_id = db_connect($default_dbname);
$query = "SELECT banner_nazwa from banner where banner_flag='1'";
$result = mysql_query($query) or die ("Zapytanie zakończone niepowodzeniem");

$ilosc = mysql_num_rows($result);

$i=1;
while($nazwy = mysql_fetch_row($result)) {
$gif[$i] = $nazwy[0];
$i++;
}

$random1 = rand(1,$ilosc);
?><center><?
echo "<img src="$gif[$random1]">";

?>[/php:1:321075b29e]
i taki inny


[php:1:321075b29e]<?php
<?php
<html>
<body>
<center>
<H3>Portal</H3>
<p><iframe name="I1" width="420" height="80" src="./banner/proba.php" scrolling="no"
border="0">
</center>
</body>
</html>


?>[/php:1:321075b29e]

Jak odpale proba.php to banerki sie zmieniaja co 5 sekund, a jak uruchomie to przez ten drugi plik to ju nie chca!
Pomocy
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 15.07.2025 - 12:36