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

What is a php session?

550


What is polymorphism?

2047


Which php framework is best for web development?

480


What is php and what does it do?

517


What is the difference between htmlentities and htmlspecialchars in php?

459






What is rest api in php?

494


What is default session time and path in php?

521


Code to upload a file in PHP?

537


Tell us how to set cookies in php?

516


Which variable declarations within a class is invalid in php?

489


What does $globals means?

506


What is variable give example?

534


Write a program to display table of a number using php?

475


When is a conditional statement ended with an endif?

506


Inside a php function, what param needs to be set in order to access a global variable?

522