Cita:
Iniciado por Ronruby
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