Ciao a tutti!
Premetto che questa è la mia prima funzione!
Ho questa funzione in un file che includo nella pagina principale:
function Points()
{//query to calculate the points the user had earned
$query_points = "SELECT COUNT(refer_username) FROM referral WHERE refer_username = '$user_name'";
$execute_points = mysql_query($query_points);
$result_points = mysql_fetch_row($execute_points);
$points = $result_points[0];
};
Include il file per cui anche la funzione...e come faccio a printare la variabile $points nella mia pagina finale?
Ho provato con Points() ma nulla succede...any help?
Grazie!![]()