http://www.html.it/guide/guida-php-e-mysql-pratica/ se poi trovi mysql_* sostituisci con mysqli_* ... spero usi PDO la guida