Tema: Error php
Ver Mensaje Individual
  #8 (permalink)  
Antiguo 11/02/2016, 13:05
seventeen
 
Fecha de Ingreso: febrero-2016
Mensajes: 14
Antigüedad: 8 años, 2 meses
Puntos: 0
Respuesta: Error php

Como te dicen arriba, la función mysql_query no te devuelve un string. Tendrás que hacer algo como lo siguiente:

Código PHP:
$Vmail mysql_query('SELECT user_email FROM clon_lb2_users where ID = "' .$IDD'";');

while(
$data mysql_fetch_array($Vmail)) {
    
mail($data['user_email'], $titulo,$mail,$headers);

Y aunque no hace al problema, no te olvides cerrar la conexión a mysql.