<?php //conexion a la db $id = $_GET['id']; $sql = "SELECT * FROM tabla WHERE ID=$id"; $query = mysql_query($sql); //etc... ?>