ziedinjsh Posted November 13, 2010 Report Share Posted November 13, 2010 (edited) if (isset($_GET['del_report'])) { $data = mysql_fetch_array(mysql_query("SELECT * FROM report WHERE id='".$_GET['del_report']."' LIMIT 1")); $sql = "DELETE FROM report WHERE id ='".$data['id']."'"; $result = mysql_query($sql); } <a href='index.php?id=report&r=del&del_report=".$data['id']."'>Delete</a> Edited November 13, 2010 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 13, 2010 Report Share Posted November 13, 2010 Murgs! Taču palasi, ko katra funkcija dara un vispār, kāpēc tiesi viņas tiek izmantotas un tāda secībā. if( isSet( $_GET['id'] ) ) { $id = $_GET['id']; mysql_query(" DELETE FROM `reports` WHERE `id` = '{$id}' LIMIT 1 ") or exit( mysql_error() ); } Quote Link to comment 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.