<?php
class MySQL
{
function MySQL()
{
$this->host_name = "*********";
$this->user_name = "*********";
$this->password = "*********";
$this->data_name = "*********";
$this->link = @mysql_connect($this->host_name, $this->user_name, $this->password) or
die (mysql_error());
@mysql_select_db($this->data_name) or die (mysql_error());
}
}
//Imposto ed eseguo la query
$query = "SELECT COUNT (*) FROM iscrizioni";
$result = mysql_query($query, $myconn) or die ("Errore...");
//Stampo il risultato
echo "Users Registered: <b>" . $result . "</b><br/>";
?>