Jump to content


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


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

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

Share this post

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


Share this post

Link to post
Share on other sites

  • 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.