SQL Query PHP Script Help?

John

New member
Here is my script. When I load the page it returns:
Parse error: syntax error, unexpected T_VARIABLE in /home/ilexfore/public_html/cel/leaderboard-ou.php on line 4

Here is the script:
<?php
$connect = mysql_connect('MyIP(censored):3306', 'root', ''password(censored));
$connect
$query = mysql_query('SELECT TOP 5 RATING FROM USERS;');
$result = mysql_query($query);
print("$result");
mysql_close($connect);
?>

Any help?

It needs to get the top 5 users from users table where rating is the highest.
 
Back
Top