
Código PHP:
$conex = mysql_connect("xxxx",
"xxxx",
"xxxxxx")or die("Mysql Error :P");
mysql_select_db("xxxxx") or die("The database doesnt exist");
$I="SELECT * from Libros where Tema='Aventuras'";
$IN=mysql_query($I,$conex) or die("Error, Please contact with the Webmaster");
while ($O=mysql_fetch_array($IN))
{
//$O['Titulo']--> Es el título del libro
$im="Aventuras/$O['Título']";
$U="UPDATE Roms SET Link='$im' where Tema='Aventuras'";
$UP=mysql_query($U,$conex);