include("./connection.php"); ?>
$query_p = "SELECT * FROM site_pages where id = $_GET[id]";
$result_p = mysql_query($query_p) or die("There is an error.".mysql_error());
//$num_record = mysql_num_rows($result);
$row_p = mysql_fetch_array($result_p);
if ($row_p['p_image']=='random') {
$images = array("p1.jpg",
"p2.jpg",
"p3.jpg",
"p4.jpg",
// "p5.jpg",
"p6.jpg",
"p7.jpg",
// "p8.jpg",
// "p9.jpg",
// "p10.jpg",
// "p11.jpg",
"p4.jpg"
);
srand(time());
$tt = count($images);
$random = (rand()%$tt);
$ban_image = $images[$random];
} else {
$ban_image = $row_p['p_image'];
}
?>
include("inc_head.php"); ?>
include("inc_header.php"); ?>
|
|
include("./inc_menu.php"); ?>
|
|
| | | |