MySQL (Part 3)

  • Writing some data into the database (INSERT and UPDATE Queries). 
  • mysql_query('TYPE_HERE_YOUR_MYSQL_QUERY') - This function is used to run specific queries on our database.  
  • INSERT QUERY - INSERT into table values ('att1', 'att2' , 'att3', 'att4' ,'att5') //Inserts Data into the table 
  • UPDATE QUERY - UPDATE table_name SET att1='xyz' //Updates the Existing values stored in the table of the database.

[ Code ] : 
http://pastebin.com/td3BJTQY

0 comments:

Post a Comment