Hello guys, i have a problem on my site.
the error is here but i can't fix it.
$kum=mysql_result(mysql_query("SELECT `id_user` FROM `statuse_like` WHERE `id_statuse` = '".intval($_GET['id'])."'"),0);
$kom=mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `id`='$kum' LIMIT 1"),0);
and this is the message:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 78 in /home/wapcomun/public_html/sper/list.php on line 214
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 79 in /home/wapcomun/public_html/sper/list.php on line 216
PHP Code:
if($komm_list)
{
$k_post=mysql_result(mysql_query("SELECT COUNT(*) FROM `statuse_komm` WHERE `id_statuse` = '".intval($_GET['id'])."'"),0);
$k_page=k_page($k_post,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
$q=mysql_query("SELECT * FROM `statuse_komm` WHERE `id_statuse` = '".intval($_GET['id'])."' ORDER BY `time` ASC LIMIT $start, $set[p_str]");
$ank=get_user($post['id_user']);
$kim=mysql_result(mysql_query("SELECT COUNT(*) FROM `statuse_like` WHERE `id_statuse` = '".intval($_GET['id'])."'"),0);
$kum=mysql_result(mysql_query("SELECT `id_user` FROM `statuse_like` WHERE `id_statuse` = '".intval($_GET['id'])."'"),0);
$kom=mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `id`='$kum' LIMIT 1"),0);
////
//$q=mysql_query("SELECT * FROM `statuse_like` WHERE `id_statuse` = '".intval($_GET['id'])."' ORDER BY `id` DESC LIMIT $start, $set[p_str]");
////
$kem=$kim-1;
if($kim==1){
echo "<div class='p_t'>\n";
echo "<img src='status/suka.gif'> <a href='/info.php?id=$kum'>$kom</a> like statuse.";
echo "</div>";
}
elseif($kim>=2){
echo "<div class='p_t'>\n";
echo "<img src='status/suka.gif'> <a href='/info.php?id=$kum'>$kom</a> and <a href='status/like_all.php?id=".$statuse['id']."'>$kem altii</a> like statuse.";
echo "</div>";
}
echo "</div>";
while ($post = mysql_fetch_assoc($q))
{
//$ank=mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = $post[id_user] LIMIT 1"));
$ank=get_user($post['id_user']);
echo "<div class='p_t'>\n";
//echo "<a href='/info.php?id=$ank[id]'><span style=\"color:$ank[ncolor]\">$ank[nick]</span></a>\n";
user($ank['id']);
//echo "<a href='info.php?id=$ank[id]'><b>".status($ank['id'])."<span style=\"color:$ank[ncolor]\">$ank[nick]</span></b></a>";
//echo "".medal($ank['id'])." ".online($ank['id'])." ";
echo "<span style=\"color:$ank[mcolor]\">";
echo "".output_text($post['msg'])."";
echo "</span>\n";
echo "<br /><font class='time'>".waktu($post['time'])."</font></span>\n";
if (isset($user) && ($user['level']>=4) || isset($user) && ($user['id'] == $statuse['id_user']))
echo "<a href='?id=".intval($_GET['id'])."&del=$post[id]'> Delete</a><br />\n";
echo "</div>";
}
if ($k_page>1)str("?id=".intval($_GET['id']).'&',$k_page,$page);
//Form komentar
echo"<div class='p_t'>\n";
if (isset($user))
{echo "<form method=\"post\" name='message' action=\"?id=".intval($_GET['id'])."&page=$page\">\n";
if ($set['web'] && is_file(H.'style/themes/'.$set['set_them'].'/altername_post_form.php'))
include_once H.'style/themes/'.$set['set_them'].'/altername_post_form.php';
else
/*echo "<div>";
echo "<form method=\"post\" name='message' action=\"?\">\n";
echo "<table cellspacing=\"0\" cellpadding=\"0\" class=\"comboInput\"><tr><td class=\"inputCell\">";
echo "Add a p_t";
echo "<br />\n<textarea name=\"msg\" rows=\"3\" cols=\"13\"></textarea></td><td>\n";
echo "<input class=\"btn btnC\" value=\"Comment\" type=\"submit\"/></td></tr></table></div>\n";
echo "</form></div>\n";*/
echo "<div id=\"body\">Adaugi comentariu?<form method=\"post\" id=\"composer_form\" name=\"message\" action=\"?\"><table class=\"comboInput\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td class=\"inputCell\"><textarea class=\"input composerInput\" name=\"msg\" rows=\"2\" cols=\"15\"></textarea></td><td><input value=\"Comment\" class=\"btn btnC\" type=\"submit\"></td></tr></tbody></table></div></form></div>";
}
}
else
{
echo"<a href='komm.php?id=$statuse[id]'>»Comment</a> (".mysql_result(mysql_query("SELECT COUNT(*) FROM `statuse_komm` WHERE `id_statuse` = '$statuse[id]'"),0).")<br/>";
}
$kum=mysql_result(mysql_query("SELECT `id_user` FROM `statuse_like` WHERE `id_statuse` = '".intval($_GET['id'])."'"),0);
$kom=mysql_result(mysql_query("SELECT `nick` FROM `user` WHERE `id`='$kum' LIMIT 1"),0);
and this is the message:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 78 in /home/wapcomun/public_html/sper/list.php on line 214
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 79 in /home/wapcomun/public_html/sper/list.php on line 216
Comment