473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

I cant delete my data

22
Please help me,
I try to get global variables but failed. I cant delete my data
my code

[PHP][<a href=\"delete.php?del=$row[date]\">Delete</a>][/PHP]

in delete.php
i wrote

[PHP]<?php
include"../connect.php";
$del=$_POST["del"];
$sql_del=mysql_query("delete from tbldataflt where date='$del'",$koneksi)or die(mysql_error());
include"input_dep.php";
?>[/PHP]
Mar 3 '07 #1
2 1425
mainul
51
Try this.

[PHP]
<?
echo "<a href=\"delete.php?del=".$row["date"]."\">Delete</a>";
?>
[/PHP]

and next time send the whole code and let us help you more perfectly.

best regards,
Mainul
Mar 4 '07 #2
amrhi
22
my code

[PHP]$cek_dup=mysql_query("select count(*) as total from tbldataflt where date='$date' and fltdep='$fltdep'",$conecti)or die( mysql_error());
$sql_dup=mysql_fetch_array($cek_dup);
if($sql_dup["total"]>"1"){
$no=1;
$print_dup=mysql_query("select * from tbldataflt where date='$date' and fltdep='$fltdep'",$connect)or die( mysql_error());
while($printdata_dup=mysql_fetch_array($print_dup) ){
echo"<tr><td width=\"30%\"><font size=\"2\">$no</font></td>
<td width=\"100%\"><font size=\"2\">$printdata_dup[tgl]</font></td>
<td width=\"100%\"><font size=\"2\">$printdata_dup[fltdep]</font></td>
<td width=\"100%\"><font size=\"2\">[<a href=\"delete.php?del=$printdata_dup[date]\">Delete</a>]</font></td>
</tr>";
$no++; [/PHP]

i cant get the variable for del in delete.php

[PHP]<?php
include"../koneksi.php";
$del=$HTTP_POST_VARS["del"];
$sql_del=mysql_query("delete from tbldataflt where date='$del'",$connect)or die(mysql_error());
include"input_dep.php";
?>[/PHP]

anyone can help me
Mar 4 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Aaron Brockhurst | last post by:
Hi Can anyone help? I cant get my php script to insert or delete records into a mysql table. I can view them all fine but that's about it. I've checked the user permissions on mysql and...
7
by: Dave Elliott | last post by:
I have a db that is split and shared on the network. I gave the user a custom menu to use. We both use the same tables of course. On my PC I can create new records using their menu on my PC, on...
0
by: Aaron | last post by:
Hi Guys, I have a dbase installed on a network where the clints have linked tables to the database on the server. I found that i had to make some minor changes to the tables on the server...
9
by: Dan K. | last post by:
Hi Folks, Problem is, that on one of my controls the DEL key wont work in textboxes. i have different controls of this kind in my app and this is the only one the DEL Key wont do his job....
5
by: plenahan68 | last post by:
I've made a small vb.net program to read my database and delete records that are specific to my needs. Well, the program says it's complete but nothing is deleted from my database. I've listed the...
2
by: g35rider | last post by:
Hi, I have the following code that is giving this error, I cant simplify the code, I was just testing some theory for something we are doing and was getting an issue here. Please someone point out...
1
by: Ilanco | last post by:
I'm new to c#. I am trying to insert or update data to my tables, and in the debug mode everithig looks ok. when i exit and look in the database all the update or insert did not take effect. i'm...
4
by: =?Utf-8?B?UmljaA==?= | last post by:
On a form - I have a datagridview which is docked to the entire form. The datagridview allows users to Delete and/or Add Rows. On the Form_Load event I Fill the datagridview source table with a...
4
by: rez151 | last post by:
trying to create a tree of hash nodes, with each node having a max of 5 objects, and a maximum of 5 child nodes...we insert 6 sucesfully and "explode" to create 3 child nodes, but when it gets to 7...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.