Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

coding for deleting items form data base on select

Answer Posted / haroon sajjad

//if single row delete
mysql_query("DELETE FROM table WHERE item='itemname'");

//if multiple rows to delete
mysql_query("DELETE FROM table WHERE item in ('item1',
'item2', 'item3')")

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

> symbol is used to redirect the output of a command. State Whether True or False?

1099


What is binary safe string?

920


Is it possible to submit a form with a dedicated button?

863


How to count a number of words in a string in php?

913


What are computer variables?

883


Explain how is it possible to cast types in php?

927


How will you calculate days between two dates in PHP?

1014


Which operator is used to concatenate two strings in PHP?

992


Explain mixed and callback functions?

1023


Why do we need abstract class in php?

894


What are the different ways to login to a remote server?

939


What is the correct and the most two common way to start and finish a php block of code?

894


What is reference variable php?

959


Write a program to display a table of any given number?

875


What is the w3c?

8876