sorry für doppel post
wollte ma informieren also das $max funktioniert nach dem einfügen
nur das $pmail nichthatte auch schon getesttet statt $usr weiter hinten zu nehm $max hat leider nix gebracht..
den gesdanken gang hate ich weil ja oben normal laut beschreibung $usr stehtbitte für jede idee offen
Hab mal weiter getstet es so eingetragenund eine fehler meldung bekommenPHP-Code:$pmail = db_query('SELECT t1.* FROM '.$db_prefix.'_gebuchte_werbung AS t1 LEFT JOIN '.$db_prefix.'_reloads_mail AS t2 ON (t1.tan = t2.tan AND (t2.uid = '.$_SESSION['uid'].' OR t2.ip = "'.$ip.'") AND t2.bis >= '.time().') WHERE (t2.tan IS NULL AND t1.werberart = "paidmail" AND t1.menge > 0 AND t1.status = 1 AND t1.verdienst > 0 AND t1.sponsor != '.$_SESSION['uid'].' ORDER BY t1.'.$usr['var'].' '.$usr['vonu'].' LIMIT '.$usr['max_forced']) OR die(mysql_error());
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 'ORDER BY t1.verdienst DESC LIMIT 25' at line 1





hatte auch schon getesttet statt $usr weiter hinten zu nehm $max hat leider nix gebracht..
bitte für jede idee offen
Zitieren