$timestamp2=time();
....SELECT UNIX_TIMESTAMP(datum) as date.... WHERE date<=$timestamp2...;
schon mit anführungsstrichen versucht?
... date <='$timestamp2' ...
$timestamp2=time();
....SELECT UNIX_TIMESTAMP(datum) as date.... WHERE date<=$timestamp2...;
schon mit anführungsstrichen versucht?
... date <='$timestamp2' ...