Hi, I can not see where I have gone wrong with my code?? I am new to this so if anyone can point out the mistake I will be very grateful!!!
<?PHP
$con = mysql_connect("myserver.com","username","mypassword");
$query = "";
$query = "Select file_name, file_rating from pafiledb_files order by filerating desc limit 0, 10";
$result = mysql_query($query);
While $row = msql_fetch_array($result)
{
echo $row[file_name];
echo $row[file_rating;
echo "<br>";
}
?>
[edit] removed username & password!!