При заходе на сайт выдает ошибки:
Notice: Undefined variable: urlsite in on line 9
Notice: Undefined variable: urlpic in on line 10
Notice: Undefined variable: urlsite2 in on line 31
Notice: Undefined variable: urlpic2 in on line 32
Notice: Undefined variable: urlsite3 in on line 54
Notice: Undefined variable: urlpic3 in on line 55
Подскажите что надо сделать с кодом:
<?php
$result = mysql_query("select * from tb_advban where play = '0' and vid='1' and status='0' ORDER BY RAND()");
$row = mysql_fetch_array($result);
$number = 0;
do {
$number++;
if ($number > 1) {
$i = ",";
} else {
$i = "";
}
$urlsite .= $i . '"go.php?type=1&id=' . $row['id'] . '"';
$urlpic .= $i . '"' . $row['urlpic'] . '"';
} while ($row = mysql_fetch_array($result));
$number = $number - 1;
$adsblock = "<?
\$urlsite = '{$urlsite}';
\$urlpic = '{$urlpic}';
\$number = '{$number}';
?>";
$fblock = @fopen($_SERVER['DOCUMENT_ROOT'] . "/kech/file_rotator468.php", "w+");
@fwrite($fblock, $adsblock);
@fclose($fblock);
$result2 = mysql_query("select * from tb_advban where play = '0' and vid='2' and status='0' ORDER BY RAND()");
$row2 = mysql_fetch_array($result2);
$number2 = 0;
do {
$number2++;
if ($number2 > 1) {
$i2 = ",";
} else {
$i2 = "";
}
$urlsite2 .= $i2 . '"go.php?type=2&id=' . $row2['id'] . '"';
$urlpic2 .= $i2 . '"' . $row2['urlpic'] . '"';
} while ($row2 = mysql_fetch_array($result2));
$number2 = $number2 - 1;
$adsblock2 = "<?
\$urlsite2 = '{$urlsite2}';
\$urlpic2 = '{$urlpic2}';
\$number2 = '{$number2}';
?>";
$fblock = @fopen($_SERVER['DOCUMENT_ROOT'] . "/kech/file_rotator100.php", "w+");
@fwrite($fblock, $adsblock2);
@fclose($fblock);
$result3 = mysql_query("select * from tb_advban where play = '0' and vid='3' and status='0' ORDER BY RAND()");
$row3 = mysql_fetch_array($result3);
$number3 = 0;
do {
$number3++;
if ($number3 > 1) {
$i3 = ",";
} else {
$i3 = "";
}
$urlsite3 .= $i3 . '"go.php?type=3&id=' . $row3['id'] . '"';
$urlpic3 .= $i3 . '"' . $row3['urlpic'] . '"';
} while ($row3 = mysql_fetch_array($result3));
$number3 = $number3 - 1;
$adsblock3 = "<?
\$urlsite3 = '{$urlsite3}';
\$urlpic3 = '{$urlpic3}';
\$number3 = '{$number3}';
?>";
$fblock = @fopen($_SERVER['DOCUMENT_ROOT'] . "/kech/file_rotator200.php", "w+");
@fwrite($fblock, $adsblock3);
@fclose($fblock);
?>
Виртуальный выделенный сервер (VDS) становится отличным выбором
Не могу нигде найти как вывести название товараЕсть страница товара и на ней кнопка вызова модального окна с формой contact form 7
Как можно получить все ключи по session = jutv0undrd4l1eodf4mm4egd5c? Код здесь
Предположим, у нас есть строка "Алала1234Марк!Михаил?Елена
Нужна помощь, есть скрипт отправки фото на стену группы, как сделать отправку документа?