Jump to content

Problem with a query delete quary


Monshery

Recommended Posts

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
[code]
            <?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);
}
?>
[/code]


This is the form its self :
[code]
<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>
[/code]

i am getting this error all time
[quote]
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
[/quote]

Any help would be great thnx
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.