Cita:
Iniciado por hyperrjas
$datoconsulta = mysql_query("select datediff ('fecha_end','fecha_begin') from users where fecha_end ='$fecha_end' and fecha_begin = $fecha_begin ");
o me sobra la parte esta:
where fecha_end ='$fecha_end' and fecha_begin = $fecha_begin ");
Quítale la parte del where. No veo que te haga falta. Un saludo.