If I push F5 button (refresh) for several times, the result sometimes different, like an inconsistent result, I just want a fix result. I kept looking the resolved of problem until now but I still failed and I don't know where are the mistakes.
the result is like this:
index.php:
<?php
include('c2gcon.php');
include('logincheckmember.php');
include('logincheckadmin.php');
//include('urlmanage.php');
//include('urlexplode.php');
$urlget = $_GET['url'];
$urlexplode = filter_var($urlget, FILTER_SANITIZE_STRING);
$url = explode("/", $urlexplode);
$urlsave=$url[0];
//print_r($url);
echo "urlsave=$urlsave<br>";
if($urlsave=='home'){
include('uc.php');
include('coorand1.php');
include('home.php');
}else{
echo "<script language=javascript> alert('gila lu')</script>";
echo "<br><br><br>gila lu keong<br>";
include('uc.php');
include('coorand2.php');
include('home.php');
}
?>
refference: coorand1.php and coorand2.php