<?
$id_del=$_GET['id_del'];
include"conncet.php";
$sql="delete * from act where id='$id' ";
$result=mysql_query($sql);
$sql="delete * from time where id='$id' ";
$result=mysql_query($sql);
mysql_close();
//echo"<h2><a href =''> ข้อมูลกิจกรรมถูกลบเรียบร้อยแล้ว </a></h2>";
?>
และนี่คือ warning
Code (PHP)
Warning: main(conncet.php) [function.main]: failed to open stream: No such file or directory in C:\AppServ\www\delete.php on line 4
Warning: main() [function.include]: Failed opening 'conncet.php' for inclusion (include_path='.;c:\php4\pear') in C:\AppServ\www\delete.php on line 4
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\delete.php on line 7
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\delete.php on line 7
Warning: mysql_close(): no MySQL-Link resource supplied in C:\AppServ\www\delete.php on line 18