PHP help. :\
I started a C#/PHP loader ages ago for private use, I figured it would be a good chance to learn some php, Once I was going to complete it I was planing on uploading it. Anyway, I'm currently stuck on a error what's really annoying me. :\ I wouldn't call it a error so much as a "bug".
This is the code:
also, i kno is vaun to sql injection. don't really care atm
http://pastebin.com/A1r6DmHu
And this is the result I get:

I'm completely lost with what's happening. I got a simple understanding with what's happening, But eh, plox help.
I would like to note at the time of typing this I'm sick with conjunctivitis. Today it's starting to get better so that's why I'm able to do this, But my throat is still getting more sore/swollen. And it sucks because the panadol I'm taking only allows me to take it every 8 hours, But starts to wear off after 4 hours :\
This is the code:
also, i kno is vaun to sql injection. don't really care atm
codezin
http://pastebin.com/A1r6DmHu
Code:
$cheatsownedinfo_query = $sqlConnection->query("SELECT * FROM `ownedcheats` WHERE `username`='$username'");
if($cheatsownedinfo_query->num_rows == 0){
die($CHEATSOWNED_NoCheatsOwned);
}
$validCheats_count = 0;
while($ownedCheats_index = $cheatsownedinfo_query->fetch_assoc()){
date_default_timezone_set("Australia/Sydney");
if($ownedCheats_index['isExpiryUnlimited'] == 'false'){
if($ownedCheats_index['expiryDate'] <= date("Y-m-d")){
continue;
}
}
$allCheatsQuery = $sqlConnection->query("SELECT * FROM `cheats` WHERE `cheatName`='".$ownedCheats_index['cheatName']."'");
if($allCheatsQuery->num_rows == 0){//row '68'
continue;
}
while($currentCheatInfo = $allCheatsQuery->fetch_assoc()){
echo Base64_EncodeUrlSafe($ownedCheats_index['expiryDate']) . ":";
echo Base64_EncodeUrlSafe($currentCheatInfo['Name']) . ":";
echo Base64_EncodeUrlSafe($currentCheatInfo['targetprocess']) . ":";
echo Base64_EncodeUrlSafe($currentCheatInfo['credits']) . "\t";
$validCheats_count++;
}
}
if($validCheats_count == 0){
die($CHEATSOWNED_AllExpired);
}
And this is the result I get:

I'm completely lost with what's happening. I got a simple understanding with what's happening, But eh, plox help.
I would like to note at the time of typing this I'm sick with conjunctivitis. Today it's starting to get better so that's why I'm able to do this, But my throat is still getting more sore/swollen. And it sucks because the panadol I'm taking only allows me to take it every 8 hours, But starts to wear off after 4 hours :\
