Get this error on a social network university project i'm creating.
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 5 in /customers/2/f/b/somesrandomsite.com/httpd.www/rnfunctions.php on line 63
Here's the PHP code in question...
function showProfile($user) {
    $UserID = mysql_result(mysql_query("SELECT `user_id` FROM `rnprofiles` WHERE `user` = '$user'"), 0) or die(mysql_error());        
    $Query = mysql_query("SELECT * FROM `images` WHERE `user_id` = '$UserID'") or die(mysql_error());
    while ($ImageData = mysql_fetch_assoc($Query)) {
        echo '<p><a title="'.$user.'" class="fancybox" data-fancybox-group="gallery" href="'.$ImageData['location'].'"><img src="'.$ImageData['location'].'" border="" align="left" height="150" width="150" alt=""/></a></p>';// Display each image belonging to the user
    }
    $result = queryMysql("SELECT * FROM rnprofiles WHERE user='$user'") or die(mysql_error());
    if (mysql_num_rows($result))
    {
        $row = mysql_fetch_row($result);
        echo stripslashes($row[1]) . "<br clear=left /><br />";
    }
}
If anyone had any thoughts it'd be a great help.
 
     
     
     
    