Arama butonu
Bu konudaki kullanıcılar: 1 misafir
5
Cevap
1340
Tıklama
0
Öne Çıkarma
Database den veri silemiyorum..
S
18 yıl
Teğmen
Konu Sahibi

Aşağıdaki kodla veri tabaından veri silmeye çalışıyorum her defasında siliyormuş gibi sayfa refresh yapıyor ama silmiyor. yardımcı olabilirseniz sevinirim.

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
body,td,th {
font-family: Tahoma;
font-size: 10px;
color: #000000;
}
-->
</style></head>

<body>
<table width="695" height="268" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td height="60" colspan="2" bgcolor="#0066CC">
<?php
include("header.php");
?> </td>
</tr>
<tr>
<td width="136" height="200" valign="top" bgcolor="#0099FF">
<?php
include("sol.php");
?> </td>
<td width="559" height="200" valign="top" bgcolor="#9BEBFF">
<?php
include("ayar.php");
$no = $_GET['NO'];
$baglanti = mysql_connect($dbhost,$dbkullanici,$dbsifre) or die("Veritabanina baglanilamadi.");
@mysql_select_db($db);
$baglanti="DELETE from adres WHERE no=" . $NO;
if (@mysql_query($sql))
{
echo " <br /> <br /> <br /> <br /> <br /> <center> KAYIT BASARIYLA SILINDI </center>";
}
?> </td>
</tr>
</table>
<div align="center"></div>
</body>
</html>