Error while selecting myql raw with php
===

When i run following mysql query 

    $result = mysql_query("SELECT * FROM credentials ORDER BY RAND() LIMIT 1");
    $result = $result->fetchRow()
    $username=$result["username"];
    $password=$result["password"];
    $gateway=$result["gateway"];

I got follwoing error 

    Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\switch\switch\index.php on line 78

please help me