Jump to content

Archived

This topic is now archived and is closed to further replies.

Monshery

Problem with a query delete quary

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

Share this post


Link to post
Share on other sites
Where do you set "$MMO_LINK" ?

Orio.

Share this post


Link to post
Share on other sites

×

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.