", "'","\"","""); $redirtit=str_replace($señas,"-",$row_Recordsetpsic['Titulo']); $nuevasseñas= array("?","¿"," ", "%","\""); $nuevotit=str_replace($nuevasseñas,"-",$row_Recordsetpsic['Titulo']); if (empty($row_Recordsetpsic['isbn'])) { mysql_select_db($database_nueva, $nueva); $query_RS = "SELECT * FROM libros1 WHERE Titulo like '$tit'"; $RS = mysql_query($query_RS, $nueva) or die(mysql_error()); $row_RS = mysql_fetch_assoc($RS); $totalRows_RS = mysql_num_rows($RS); $ID=$row_RS['ID']; $GETID=$_GET['recordID']; $lib=$row_RS['Titulo']; if (!empty($row_RS['ID'])){header("Location:http://www.internetlibros.com/$GETID/$lib.html");} if (empty($row_RS['ID'])) {require('404.php');}} if (strtoupper($_GET['tit']) == $_GET['tit']) { header("HTTP/1.0 301 Resource Moved Permanently"); header("Location: http://www.internetlibros.com/".$GETID."/".$nuevotit.".html");} unset ($ID,$lib,$redirtit,$nuevotit); ?>