Hey guys,
I have a question that I need an answer to: How do you display a person's name and score?
Say, for example, a user takes a quiz and gets 80% on it. I want this information to be displayed on the side of the screen for everyone to see, so whenever a person goes to the website he can see all the scores. This way I can compare the scores between people and see who got the most correct.
Please help,
Thank you

You should post the code that you currently have.

<?php //db connection
//sql query
$sql="SELECT NAME,SCORE FROM TABLE";
$result = mysql_query($sql);
while($data=mysql_fetch_assoc($result))
{
echo "<tr><td>Name:'".$data['name']."'</td>";
echo "<td>score:'".$data['score']."'</td></tr>";
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.