coding for deleting items form data base on select



coding for deleting items form data base on select..

Answer / 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

More PHP Interview Questions

How can we determine whether a variable is set?

0 Answers  


What is $_ request in php?

0 Answers  


display selected value in dropdown list through javascript without page refresh

5 Answers   ASD Lab,


Tell me can the value of a constant change during the script's execution?

0 Answers  


What are form input html tags?

0 Answers  


How to count all the lines of code in a directory and sub folder?

0 Answers  


how to run PHP in command line?

8 Answers   InfoShore, Ramp Green, Xtreeme,


What is indexing how many types?

3 Answers   DLF, Infosys, Net Solution, Vcare,


Single choice objective PHP question...

1 Answers  


What is the use of imagetypes() method?

0 Answers  


what is nl2br?

4 Answers  


Explain the differences between get and post methods?

0 Answers  


Categories