Hello all,
I'm having a slight problem with a script i created at work. All was
fine until one day i decided i'd work on it at home, so i set up the
same apache server (2.0.49) and php (4.3.3) and mysql (4.0.15) and now
one of my scripts returns this:
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index
24 in F:\web\forum.ph p on line 49
The only major difference between the two computers is that office one
runs windows 98, and my home pc runs XP Pro. The code on the two
machines is EXACTLY the same.
The code involved:
47 $last_post_user name = "select username from user_info where id =
'$last_post_id[$num]'";
48 $last_post_user name_res = mysql_query($la st_post_usernam e);
49 $last_poster = mysql_result($l ast_post_userna me_res,0,'usern ame');
please excuse if the code seems a little 'noob'ish, but i'm learning
php as i go along.
Any help appreciated!
I'm having a slight problem with a script i created at work. All was
fine until one day i decided i'd work on it at home, so i set up the
same apache server (2.0.49) and php (4.3.3) and mysql (4.0.15) and now
one of my scripts returns this:
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index
24 in F:\web\forum.ph p on line 49
The only major difference between the two computers is that office one
runs windows 98, and my home pc runs XP Pro. The code on the two
machines is EXACTLY the same.
The code involved:
47 $last_post_user name = "select username from user_info where id =
'$last_post_id[$num]'";
48 $last_post_user name_res = mysql_query($la st_post_usernam e);
49 $last_poster = mysql_result($l ast_post_userna me_res,0,'usern ame');
please excuse if the code seems a little 'noob'ish, but i'm learning
php as i go along.
Any help appreciated!
Comment