i have a coding that shows users mood image on the online list but want to have a option to delete it and dont have any have coded this below but the image not moving....
////////Genproc.php//////
//////////////////////////remove online mood image//////////////////////////
else if($action=="delonmood")
{
addonline(getuid_sid($sid),"Removing Online Mood","");
echo "<card id=\"main\" title=\"Online Mood Removed\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_avatars3 WHERE id='".$item[2]."'");
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"\"/>Online Mood Removed Successfully<br/>";
echo "<a href=\"index.php?action=online&sid=$sid\">Back to Online List</a><br/><br/>";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"\"/>Error! ";
}
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p></card>";
}
//////////Index.php?action=online//////
echo "<a href=\"index.php?action=delonmood&sid=$sid\">R emove Online List Mood</a><br/>";
////////Genproc.php//////
//////////////////////////remove online mood image//////////////////////////
else if($action=="delonmood")
{
addonline(getuid_sid($sid),"Removing Online Mood","");
echo "<card id=\"main\" title=\"Online Mood Removed\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_avatars3 WHERE id='".$item[2]."'");
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"\"/>Online Mood Removed Successfully<br/>";
echo "<a href=\"index.php?action=online&sid=$sid\">Back to Online List</a><br/><br/>";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"\"/>Error! ";
}
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p></card>";
}
//////////Index.php?action=online//////
echo "<a href=\"index.php?action=delonmood&sid=$sid\">R emove Online List Mood</a><br/>";
Comment