DELETE Mood from online list

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

4 replies · 405 views · started 17 years ago · 1 min read

3 participants
Pablo Developer · 164 posts #1

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 " "; echo " ";

$res = mysql_query("DELETE FROM ibwf_avatars3 WHERE id='".$item[2]."'");

if($res) { echo "<img src="../images/ok.gif" alt=""/>Online Mood Removed Successfully "; echo "<a href="index.php?action=online&sid=$sid">Back to Online List</a>

"; }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 " </card>"; }

//////////Index.php?action=online//////

echo "<a href="index.php?action=delonmood&sid=$sid">Remove Online List Mood</a> ";

something else Fellow · 2,296 posts #2

is this an option for users to delete? in which case you would need to change $item[2] to $uid and possibly not use ibwf_avatars3

however if this is a staff tool to delete them then you need a variable in your link and collect it and changed $item[2] into that variable

Pablo Developer · 164 posts #3

i tried this and it still didnt work

else if($action=="delonmood") {

addonline(getuid_sid($sid),"Removing Online Mood",""); echo "<card id="main" title="Online Mood Removed">"; echo " "; echo " ";

$res = mysql_query("DELETE avatar3 FROM ibwf_users WHERE id='".$uid."'");

if($res) { echo "<img src="../images/ok.gif" alt=""/>Online Mood Removed Successfully "; echo "<a href="index.php?action=online&sid=$sid">Back to Online List</a>

"; }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 " </card>"; }

Pablo Developer · 164 posts #5

????????????? dude i dnt even want this coding....some one ask me 2 ask here for dem....and if u look goood in this whole site....if i ask for ntn that much

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close