Jump to content

abda53

New Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by abda53

  1. Do keep in mind though -- this just hides the error, it doesn't change the fact that there is an error.

     

    True, but what he was seeing was just notices, not true errors. You are right though, it should be coded so that there isn't anything to report in the first place

  2. This will be in your php settings.

     

    You can hide these kind of errors, at the top of your php page put this code

     

    <?

    error_reporting(0);

    ini_set('display_errors', '0');

    ?>

  3. This is how I normally do this.. maybe not the best way, but it works for me.

     

     

    <input type="checkbox" name="delete" value="1"> delete 1<br>
    <input type="checkbox" name="delete" value="2"> delete 2<br>
    <input type="checkbox" name="delete" value="3"> delete 3
    

     

    <?
    foreach ($_POST['delete'] AS $var=>$val)
    {
    //do value checking...
    //then..
     mysql_query("DELETE FROM `table` WHERE id='$val'");  
    }
    ?>
    

×
×
  • Create New...