Code: Select all
or die(mysql_error())Code: Select all
echo hi;Code: Select all
or die(mysql_error())Code: Select all
or die(NO IDEA)I have fixed the problem in the code now, but could someone please tell me what was wrong with this code(which use to work):
Code: Select all
// Checks if user has already registered a match
$warlistedquery = mysql_query("SELECT warlisted FROM users WHERE username='$username'") or die(mysql_error());
$warlisted_fetch = mysql_fetch_array($warlistedquery) or die(mysql_error());
$warlisted = $warlisted_fetch['warlisted'] or die('NO IDEA');
if ($warlisted =='1')
{
die('You have already listed a war, delete it via control pannel to list a new war');
}Code: Select all
$warlistedquery = mysql_query("SELECT warlisted FROM users WHERE username='$username'") or die(mysql_error());
$warlisted_fetch = mysql_fetch_array($warlistedquery) or die(mysql_error());
if ($warlisted_fetch['warlisted'] =='1')
{
die('You have already listed a war, delete it via control pannel to list a new war');
}Cheers,
Mkay