Seite 2 von 2

Verfasst: 15.09.2008 18:54
von Miriam
Mist... Doppelfehler!


Alles nochmal auf Null.

Finde:

Code: Alles auswählen

$sql = "SELECT *
        FROM " . RANKS_TABLE . "
        ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
        message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
Davor füge ein:

Code: Alles auswählen

//
// User banned?
//
$sql = "SELECT * FROM " . BANLIST_TABLE . "
        WHERE ban_userid = '" . intval($profiledata['user_id']) . "'";

if ( !($result = $db->sql_query($sql)) )
{
        message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
else if ($row = $db->sql_fetchrow($result))
{
        message_die(GENERAL_ERROR, 'User gebannt');
}

Mein Fehler. :oops:

Verfasst: 15.09.2008 21:11
von DMX200
Miriam hat geschrieben:Mist... Doppelfehler!


Alles nochmal auf Null.

Finde:

Code: Alles auswählen

$sql = "SELECT *
        FROM " . RANKS_TABLE . "
        ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
        message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
Davor füge ein:

Code: Alles auswählen

//
// User banned?
//
$sql = "SELECT * FROM " . BANLIST_TABLE . "
        WHERE ban_userid = '" . intval($profiledata['user_id']) . "'";

if ( !($result = $db->sql_query($sql)) )
{
        message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
}
else if ($row = $db->sql_fetchrow($result))
{
        message_die(GENERAL_ERROR, 'User gebannt');
}

Mein Fehler. :oops:

jo geht n1