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

What is final keyword in php?

0 Answers  


How to insert a line break in php string?

0 Answers  


What is the use of php and mysql?

0 Answers  


What is the use of ajax in php?

0 Answers  


What is a role of a designer in web development. Till what level the designer will do his work. Does he gives the complete html file or the tpl file or he should also include the smarty tag in the tpl file.

1 Answers  






How do you define a constant in php?

0 Answers  


Suppose your Zend engine supports the mode <? ?> Then how can u configure your PHP Zend engine to support <?PHP ?> mode ?

1 Answers   Rushmore Consultancy,


Explain a resource?

0 Answers  


How do you pass a variable by value in php?

0 Answers  


Tell me how would you declare a function that receives one parameter name hello?

0 Answers  


Define soundex()?

0 Answers  


How to protect special characters in query string?

0 Answers  


Categories