include("top_foot.inc.php"); include("config.inc.php"); top(); $db = mysql_connect($db_host, $db_user, $db_password); if ($db == FALSE) die ("Errore nella connessione. Verificare i parametri nel file di configurazione"); mysql_select_db($db_name, $db) or die ("Errore nella selezione del database. Verificare i parametri nel file di configurazione"); //registrazione ricerca"; $base="globa"; $ip=@$REMOTE_ADDR; $ref=@$HTTP_REFERER; $addseakey = "INSERT INTO `isc_seakey` VALUES ('$id', '$base', NOW( ), '$ip', '$ref')"; mysql_query($addseakey, $db); // fine registrazione $query = "SELECT id,autore,titolo,note,cheys,coper,dove,lingua FROM globa WHERE id='$id'"; $result = mysql_query($query, $db); $row = mysql_fetch_array($result); $querycop = "SELECT coper FROM coper WHERE coper='$row[coper]'"; $resultcop = mysql_query($querycop, $db); $rowcop = mysql_fetch_array($resultcop); if ( $rowcop[coper]== "") { $strcop = "images/nocoper.jpg"; } else { $strcop = "/coper/".$rowcop[coper]; } echo "
|
||
COPERTINA | TITOLO | $row[titolo] |
|
AUTORE | $row[autore] |
NOTE | $row[note] | |
CATALOGO | $row[dove] | |
RIF | $row[id] | |
LINGUA | $row[lingua] | |
|