Código PHP:
<table border=1 cellspacing=0 cellpadding=1>
<TR><TD><STRONG> Fecha </STRONG></TD><TD><STRONG> Profesor </STRONG></TD><TD><STRONG> Departamento </STRONG></TD><TD><STRONG> Copias </STRONG></TD><TD><STRONG> Eliminar registre </STRONG></TD></TR>
<?php
while($row2 = mysql_fetch_array($result2)) {
printf("<tr><td> %s </td><td> %s </td><td> %s </td>
<td> %s </td><td><a href=\"eliminar_registro.php?idcopias=%d\">Borrar</a></td></tr>", $row2["Fecha"],$row2["Nombre"]." ".$row2["Apellidos"],
$row2["Departamento"],$row2["Copias"], $row2["id"]);
}
mysql_free_result($result2);
mysql_close($link);
?>
</table>
Código PHP:
<table border=1 cellspacing=0 cellpadding=1>
<TR><TD><STRONG> Fecha </STRONG></TD><TD><STRONG> Profesor </STRONG></TD><TD><STRONG> Departamento </STRONG></TD><TD><STRONG> Copias </STRONG></TD><TD><STRONG> Eliminar registre </STRONG></TD></TR>
<?php
while($row2 = mysql_fetch_array($result2)) {
printf("<tr><td> %s </td><td> %s </td><td> %s </td>
<td> %s </td><td><a href=\"eliminar_registro.php?idcopias=%d\"><img border=0 src="images/borrar.png"></a></td></tr>", $row2["Fecha"],$row2["Nombre"]." ".$row2["Apellidos"],
$row2["Departamento"],$row2["Copias"], $row2["id"]);
}
mysql_free_result($result2);
mysql_close($link);
?>
</table>
Error: Parse error: parse error, unexpected T_STRING in D:\www\index.php on line 96, que ocurre cuando hago el cambio (<a href=\"eliminar_registro.php?idcopias=%d\"><img border=0 src="borrar.png"></a>)
Alguien puede ayudarme?
He probado este enlace a parte y sí funciona, pues la sintaxis está bien:
Código PHP:
<a href="js_calendar.html"><img border=0 src="images/borrar.png"></a>