Monshery Posted July 3, 2006 Share Posted July 3, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/13535-problem-with-a-query-delete-quary/ Share on other sites More sharing options...
Orio Posted July 3, 2006 Share Posted July 3, 2006 Where do you set "$MMO_LINK" ?Orio. Quote Link to comment https://forums.phpfreaks.com/topic/13535-problem-with-a-query-delete-quary/#findComment-52405 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.