i have a problem with the print of data from DB. I have a database called "Project" and a table: "Prenotazione".
I want print the elements from this table. so i use this code:
<html>
    <head>
        <title>Prenotazioni Richieste</title>
    </head>
    <body>
        <table> 
        <?php 
            $host="localhost"; 
            $uname="root"; 
            $psw="123456789"; 
            $nomedb="Project"; 
            mysql_connect($host,$uname,$psw);
            mysql_select_db($nomedb);
            $q=mysql_query("SELECT * FROM Prenotazione");
            $r=mysql_fetch_assoc($q);
            echo $r[nome];
        ?> 
        </table>
    </body>
</html>
But i have only a white page without any elements. How can i solve? And why this code doesn't show nothing? Thank you.
 
     
    