Ver Mensaje Individual
  #12 (permalink)  
Antiguo 28/06/2015, 09:36
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: quiero agregar un perfil con foto y datos de usuario

y este la recibe y emite la respuesta:
Código PHP:
Ver original
  1. $mysqli = new MySQLi($hostname_seguridad, $username_seguridad, $password_seguridad, $database_seguridad);
  2. $mensajes = $mysqli->query("SELECT mensajes.*,usuarios.unidad_explot FROM usuarios inner join mensajes on usuarios.unidad_explot=mensajes.unidad_explot WHERE estado = 'no_leido' AND usuario = '$_GET[usuario]' AND mensajes.rif='$_GET[rif]'");
  3. $row_mensajes = $mensajes->fetch_assoc();//mysql_fetch_assoc($leer_mensaje);//Estandar Viejo
  4. $totalRows_mensajes = mysqli_num_rows($mensajes);
  5. $cantidad = mysqli_num_rows($mensajes);
  6. if($cantidad <= 0) {
  7.     $msg = "No tiene mensajes";
  8. }
  9. else {
  10.     $msg = "Usted tiene <b>".$cantidad. "</b> mensajes nuevos";
  11. }