Jump to content


Photo

Problem with a query delete quary


  • Please log in to reply
1 reply to this topic

#1 Monshery

Monshery
  • Members
  • PipPipPip
  • Advanced Member
  • 44 posts

Posted 03 July 2006 - 12:45 PM

well i am trying to make a deleteing form - for mails - i have a mail sending form and i am trying to add a delete form - but i have problem with my query  here is code :

This code comes first
            <?php 
			if($_POST['Deletemail'] != null)
			{
			$to_delete_this_message = $_POST['Deletemail'];
			$DELETEING = mysql_query("DELETE FROM userinboxmail WHERE MNUMBER = '$to_delete_this_message'",$MMO_LINK);
			}
	?>


This is the form its self :
<FORM action="WOW-MAILIN.PHP" method="POST">
                  <input name="Deletemail" type="checkbox" id="Deletemail" value="<? echo $MMO_FE_GET_USERMAIL['MNUMBER'] ?>">
                <input name="DELETE" type="submit" id="DELETE" value="Delete">
</FORM>

i am getting this error all time

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\wamp\www\Yanivs\MMO-Date\WOW-MAILIN.PHP on line 578


Any help would be great thnx

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 03 July 2006 - 12:54 PM

Where do you set "$MMO_LINK" ?

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users