Ver Mensaje Individual
  #7 (permalink)  
Antiguo 29/01/2009, 14:19
Okiro
 
Fecha de Ingreso: mayo-2005
Mensajes: 51
Antigüedad: 19 años
Puntos: 0
Respuesta: Error en mi web

Cita:
Iniciado por Ronruby Ver Mensaje
Agregale un or die(mysql_error()) a tu consulta:

Código PHP:
$sql mysql_query("SELECT  Num_Cancion,Canciones.Nombre, COUNT(Num_Acorde) FROM Acordes, Canciones,Artistas WHERE Acordes.Estado='S' AND Cancion=Num_Cancion AND Artista=Num_Artista AND Artista='$Art' GROUP BY  Num_Cancion,Canciones.Nombre  ORDER BY Canciones.Nombre LIMIT $reg1, $tampag") or die(mysql_error()); 
Muchas gracias por echarme una mano. Os lo agradezco de corazon.
Ronruby, he puesto la linea como me indicas y ahora me aparece este error:

Código:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1