how to delete???

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

Post Reply
yk
Forum Newbie
Posts: 2
Joined: Thu Apr 08, 2004 3:42 am

how to delete???

Post by yk »

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 »

is this in a database or in a file?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Code: Select all

$query = "DELETE from <tablename where something=$whatever";
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

Code: Select all

<?php

mysql_query ("DELETE FROM `table` WHERE `field` = $something");

?>
Post Reply