Ben aşağıda kodu ile ilgili bir sorun var -
mysqli_select_db($connect,"publishers");
//using for the display of the offer box
$sql = "SELECT * FROM revbut WHERE onpublisher='$u'";
$g = mysqli_query($connect,$sql) or die(mysqli_error($connect));
mysqli_select_db($connect,"users");
//using for the display of the offer box
$db = "SELECT * FROM button WHERE sessionusername='$u'";
$s = mysqli_query($connect,$db) or die(mysqli_error($connect));
$user = mysqli_fetch_assoc($s);
while($geez = mysqli_fetch_assoc($g))
{
if($geez['onuser']) {
$globalname = $geez['sessionusername'];
include('js.php');
}
else if($user['sessionusername']){
include('js2.php');
}
else {
echo "Nothing in here.";
}
}
Ben ise döngü kaldırırsanız, bu çalışıyor.