Posted by Mikro on 08/14/05 19:06
Hi!
Please help me to get this work.
<?php
if(isset($delnews)) { ?>
<script language="JavaScript">
function deleting()
var answer = confirm ("Delete record?)
if (answer){
<?php
$stmo=("DELETE FROM news WHERE id='$u_id'");
$stmu = mysql_query($stmo);
//echo $stmp;
if ($stmu)
{
echo "('OK')";
} else
{
echo "('No";
}
?>
}
</script>
<?php
}
?>
<a
href=\"javascript:deleting('?id=2&delete&u_id=".$row["id"]."')\Delete</a></p>
Navigation:
[Reply to this message]
|