Hi,
What is the steps used to insert a record in a table?
insert a record in table
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: insert a record in table
Use,
Code: Select all
mysql_fetch_array- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: insert a record in table
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
(#10850)
Re: insert a record in table
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.
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.