求~删除前确认框 php

2025-01-08 08:05:29
推荐回答(2个)
回答1:

echo "$model $brand
\n";
把这行改改就行了。
echo "$model $brand
\n";

你的代码写得很简单,所以就用这个简单的方式了。链接上加了个onclick 事件。

回答2:

修改delete2.php

$phoneid = $_GET['phoneid']; // need this to identify the particular record to delete

echo "

Deleting record ...

";

include 'database_conn.php'; // make db connection

$sql = "DELETE FROM product WHERE phoneid = $phoneid";

mysql_query($sql) or die (mysql_error());

echo "

Record deleted

";

mysql_close($conn);

echo "

Back To Administrator Area

";
?>