ich habe das Remind Admin mod etwas modifiziert und eine abfage hinzugefügt. nun bekomme ich einen fehler:
Code: Alles auswählen
Could not obtain user information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM phpbb_users WHERE user_id = '161'' at line 1
SELECT username, user_active, user_actkey, user_id, user_email, user_lang, FROM phpbb_users WHERE user_id = '161'
Line : 468
File : /usr/local/apache/www/web34/html/phpBB2/admin/admin_reminder.php3
Code: Alles auswählen
elseif ($mode == 'remind_ohne_wohnort')
{
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
if ( isset($HTTP_POST_VARS['BOX']))
{
foreach ($HTTP_POST_VARS['BOX'] as $sel_user)
{
$sql = "SELECT username, user_active, user_actkey, user_id, user_email, user_lang, FROM " . USERS_TABLE . " WHERE user_id = '$sel_user'";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql);
}
else
{
while($row = $db->sql_fetchrow($results))
{
Gruß Jörg