answersLogoWhite

0

To delete data from your MySQL database you need to use the mysql_query() function. Please see the example below:

<?php

mysql_query("DELETE FROM table_name WHERE field_name = 44");

?>

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

Earn +20 pts
Q: How do you delete data from a MySQL database using PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp