Help For This Code

Started on the old forum in August 2007 · view the original in the archive · old links redirect here

2 replies · 465 views · started 19 years ago · 1 min read

2 participants
honkytonkman Senior · 252 posts #1

look at this..it's a code that wipes one single message in pvt inbox..i need a version to wipe ALL messages. : break;

	case "delete" :
	
		$query = $db->sql_query("select privmsgs_id from " . PRIVMSGS_TABLE . " where privmsgs_id = \"$pmid\" and privmsgs_to_userid = \"" . $userdata['user_id'] . "\" limit 1");
		$privmsg_info = $db->sql_fetchrow($query);
		if($privmsg_info['privmsgs_id'] == 0)
		{
			echo $lang['wap_pm_not_exist'];
		}
		else
		{
			$query = $db->sql_query("delete from " . PRIVMSGS_TABLE . " where privmsgs_id = " . $privmsg_info['privmsgs_id'] . " limit 1");
			if($query)
			{
				echo $lang['wap_pm_deleted_ok']; 
			}
			else
			{
				echo $lang['wap_there_was_an_error']. ". " . $lang['wap_please_try_again_later']. "."; 
			}
		}
	
	break

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

amylee Principal · 1,092 posts #2

be a help to know what script you are using

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