السلام عليكم ورحمة الله وبركاته
كيفك ياخواني
عندى مشكلة فى الكود هذا
<?php
include'../config.php';
$q ="select * from work";
$result = mysql_query($q);
while($student = mysql_fetch_array($result)){
echo"<h4>".$student['id']."</h4>";
echo"<h3>".$student['number']."</h3>";
echo"<h3>".$student['work']."</h3>";
echo"<h3>".$student['date']."</h3>";
echo"<a href=\"delete.php?work=".$student['id']."\"> حذف </a>";
}
?>عند الضغط على حذف لايتم حذف البيانات
هذا كود الحذف delete.php
<?php
include'../config.php';
mysql_query("delete from work where id = $_GET[id] ") or die (mysql_error() );
header("location: index.php");
?>اتمنى منكم تصحيح اكلود وشكرا
