
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Which PHP function is used to insert data into an existing MySQL table?
PHP uses a mysql_query function to insert data into an existing MySQL table. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −
Syntax
bool mysql_query( sql, connection );
Followings are the parameters used in this function −
S. No. | Parameter & Description |
---|---|
1. | Sql Required - SQL query to insert data into an existing MySQL table |
2. | connection Optional - if not specified, then the last opened connection by mysql_connect will be used. |
- Related Questions & Answers
- Which PHP function is used to delete an existing MySQL table?
- Which PHP function is used to delete an existing database?
- How can we insert data into an existing MySQL table by using PHP script?
- Which PHP functions are used in the PHP script to fetch data from an existing MySQL table?
- Which PHP function is used to create a MySQL table?
- Which PHP function is used to select a MySQL database?
- Which PHP function is used to disconnect from MySQL database connection?
- Which PHP function is used to establish MySQL database connection using PHP script?
- How to write PHP script to delete data from an existing MySQL table?
- Inserting data into a new column of an already existing table in MySQL?
- How can we insert data into a MySQL table?
- How to write MySQL procedure to insert data into a table?
- Which PHP function is used to release cursor memory associated with MySQL result?
- How to write PHP script to update an existing MySQL table?
- MySQL statement to copy data from one table and insert into another table
Advertisements