![]() |
||||||||||||||||||||||||||||||
| Home --- Topics --- Articles --- Offers --- Register --- Contact us | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
Did you know? if you register at Hamid School you can save up to 45% on hosting packages offered by Surreyhost.com . Don't miss out, every minute counts! Are you Confused? Click here to learn how to use hamid school PHP MySQL Delete FromThe DELETE FROM statement is used to delete rows from a database table. Delete Data In a DatabaseThe DELETE FROM statement is used to delete records from a database table. Syntax
Note: SQL statements are not case sensitive. DELETE FROM is the same as delete from. To get PHP to execute the statement above we must use the mysql_query() function. This function is used to send a query or command to a MySQL connection. ExampleEarlier in the tutorial we created a table named "Person". Here is how it looks:
The following example deletes all the records in the "Person" table where LastName='Griffin':
After the deletion, the table will look like this:
Viewed:290
Did you know? if you register at Hamid School you can learn web programming and designing for free and also you can save up to 45% on hosting packages offered by Surreyhost.com . Don't miss out, every minute counts!
|
|
|||||||||||||||||||||||||||||
|
Sponsored by: Surreyhost.com Coded and designed by: Hamid Moudi HPLA |
||||||||||||||||||||||||||||||