NEWS: Total Picture Views: 151536 | Total Article Views: 161027 | Top 5 Most Popular Article: 1. Am I Stuck Algorithm with Becker Robot | 2. PickUpThings with Becker Robot | 3. How to read a JSON and work with it | 4. Encrypted Data GUI (Download .Zip) | 5. Create Wall and Things with Becker

MySQL Query Example PHP/MySQL

Description:

In this example I will be showing you MySQL Query

Code:

//SELECT Query
//You can add ORDER BY ASC (Ascending) or DESC (Descending)  at the end
SELECT * FROM `table_name` WHERE `id`='$id' 


//Insert Query
INSERT INTO `table_name` (`rows1`,`rows2`) VALUES ('$value1','$value2')


//Delete Query
DELETE FROM `table_name` WHERE `id`='$id'

//Update Query
UPDATE  `table_name` SET  `rows1` = '$information' WHERE `id`='$id'
Attachments: None

Tags: Basic MySQL Query

Total Views: 895

My name is Jean-Mathieu

I created this website so other people could enjoy finding useful stuff easier. If you have any question do not hesitate to contact me.

jean8mathieuCreated on 09/06/14 and updated on 09/06/14


affiliate_link

Disclosure: We are a website that needs compensation to operate like any other website on the internet.
We may receive consideration for our reviews but we are totally unbiased and do not accept paid reviews or fake reviews claiming to be something they are not.