PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
yk
Forum Newbie
Posts: 2 Joined: Thu Apr 08, 2004 3:42 am
Post
by yk » Thu Apr 15, 2004 12:46 pm
Name:fdgfdg
Location:dgdfgfgh
Email:fghgfhfg
URL:fghgfhfg
Comments:fghgfh
Entry_id:1
delete/modify
i have a problem in deleting or modifying these data... i don't know what command i need to use????
Last edited by
yk on Sun Apr 18, 2004 7:11 am, edited 3 times in total.
qads
DevNet Resident
Posts: 1199 Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane
Post
by qads » Thu Apr 15, 2004 12:52 pm
is this in a database or in a file?
ol4pr0
Forum Regular
Posts: 926 Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador
Post
by ol4pr0 » Thu Apr 15, 2004 1:20 pm
Code: Select all
$query = "DELETE from <tablename where something=$whatever";
vigge89
Forum Regular
Posts: 875 Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden
Post
by vigge89 » Thu Apr 15, 2004 2:31 pm
Code: Select all
<?php
mysql_query ("DELETE FROM `table` WHERE `field` = $something");
?>