Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/07/2010, 13:26
aldaus
 
Fecha de Ingreso: julio-2010
Mensajes: 21
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: consulta e imprimirla en pantalla

gracias por tu pronta respuesta pero me sigue marcando el error

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/xxx/x/x/xxxxxx/consulta.php on line 8

que es esta

<?php
$base="saticxxihdt";
mysql_connect ("mysql.webcindario.com","saticxxihdt","250909" );
mysql_select_db ($base);
$query = "SELECT reportes.CLAVE,reportes.DIRECTOR,reportes.TELEFONO ,consulta1.ESCUELA,consulta1.LOCALIDAD FROM reportes INNER JOIN consulta1 ON reportes.CLAVE=CONSULTA1.CLAVE";
$response = mysql_query($query);
$c = 0;
while( $row = mysql_fetch_assoc($response) )
{
$noticia[$c] = $row;
$c++;
}
?>