Page 1 of 1
insert a record in table
Posted: Sat Apr 07, 2012 3:54 am
by Vimalsingh
Hi,
What is the steps used to insert a record in a table?
Re: insert a record in table
Posted: Sat Apr 07, 2012 9:46 am
by Christopher
Re: insert a record in table
Posted: Sun Jun 24, 2012 9:02 am
by jayson.ph
Re: insert a record in table
Posted: Sun Jun 24, 2012 10:11 am
by Christopher
Don't use the mysql extension, it is no longer supported. The PDO docs have an INSERT example in the Contributed Notes:
http://us3.php.net/manual/en/pdo.exec.php
Re: insert a record in table
Posted: Tue Jul 03, 2012 7:44 am
by joevega
insert into Table values('first value',' last value');
The insert into is used to add the records followed by the name of table. The open parenthesis follow the table name, that include list of values enclosed inside a parenthesis. The value given into the table will be positioned at respective rows and match up with column name specified in the table.