un esempio veloce


Codice PHP:
$archivio=mysql_connect("localhost""root"""); 
$beta=mysql_select_db("my_loveessence"); 
$select=mysql_query("SELECT * FROM iscrizioni"); 
while(
$result =  mysql_fetch_array($select)) 
{  
    echo 
"<a href=\"dettagli.php?id=$result['id']\">dettagli $result['nome']</a> 
"


mentre la pagina nuova che chiami dettagli.php o utenti1.php o come vuoi (basta mettere il nome giusto nell'href

Codice PHP:
<?php
if (!isset($_GET['id'] ) )
{
header("location: index.php");
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../mystyle.css">
</head>
//etc etc
<?php
$select
=mysql_query("SELECT * FROM iscrizioni where id=$_GET['id']"); 
if(
$result =  mysql_fetch_array($select)) 
{
     echo 
"nome $result['nome']";
     
etc etc
}
else
{
     
header("location: index.php");

}