Found 1466 Articles for PHP

Which PHP functions are used in the PHP script to fetch data from an existing MySQL table?

Nikitha N
Updated on 22-Jun-2020 13:55:09

81 Views

PHP uses following functions to fetch data from an existing MySQL table −mysql_query() functionThis function is used in PHP script to fetch data from an existing MySQL table. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −Syntaxbool mysql_query( sql, connection );Followings are the parameters used in this function −S. No.Parameter & Description1.SqlRequired - SQL query to fetch data from an existing MySQL table2.connectionOptional - if not specified, then the last opened connection by mysql_connect will be used.mysql_fetch_array() functionThis is another function which is used in PHP script while fetching ... Read More

How can we insert data into an existing MySQL table by using PHP script?

Anvi Jain
Updated on 22-Jun-2020 14:03:52

406 Views

As we know that PHP provides us the function named mysql_query to insert data into an existing MySQL table.ExampleTo illustrate this we are inserting data into a table named ‘Tutorials_tbl’ with the help of PHP script in the following example −           Add New Record in MySQL Database              

Which PHP function is used to insert data into an existing MySQL table?

Srinivas Gorla
Updated on 22-Jun-2020 13:40:55

76 Views

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 −Syntaxbool mysql_query( sql, connection );Followings are the parameters used in this function −S. No.Parameter & Description1.SqlRequired - SQL query to insert data into an existing MySQL table2.connectionOptional - if not specified, then the last opened connection by mysql_connect will be used.

How can we delete an existing MySQL table by using PHP script?

Nitya Raut
Updated on 22-Jun-2020 13:43:01

90 Views

As we know that PHP provides us the function named mysql_query to delete an existing MySQL table.ExampleTo illustrate this we are deleting a table named ‘Tutorials_tbl’ with the help of PHP script in the following example −           Creating MySQL Tables                  

Which PHP function is used to delete an existing MySQL table?

Abhinanda Shri
Updated on 22-Jun-2020 13:44:39

69 Views

PHP uses mysql_query function to delete an existing MySQL table. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −Syntaxbool mysql_query( sql, connection );Followings are the parameters used in this function −S. No.Parameter & Description1.SqlRequired - SQL query to delete an existing MySQL table2.connectionOptional - if not specified, then the last opened connection by mysql_connect will be used.

How can we create a MySQL table by using PHP script?

Jennifer Nicholas
Updated on 22-Jun-2020 13:28:25

115 Views

As we know that PHP provides us the function named mysql_query to create a MySQL table. To illustrate this we are using the following example −In this example, we are creating a table named ‘Tutorials_tbl’ with the help of PHP script inExample           Creating MySQL Tables                  

Which PHP function is used to create a MySQL table?

Ankitha Reddy
Updated on 30-Jul-2019 22:30:21

70 Views

PHP uses a mysql_query function to create a 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 − Sr.No Parameter & Description 1 Sql Required - SQL query to create a MySQL table 2 connection Optional - if not specified, then the last opened connection by mysql_connect will be used.

How can we select a MySQL database by using PHP script?

Vrundesha Joshi
Updated on 22-Jun-2020 13:33:45

93 Views

As we know that PHP provides us the function named mysql_select_db to select a mysql database.ExampleTo illustrate this we are selecting a database named ‘Tutorials’ with the help of PHP script in the following example −           Selecting MySQL Database                  

Which PHP function is used to select a MySQL database?

seetha
Updated on 22-Jun-2020 13:33:13

113 Views

PHP uses mysql_select_db function to select a MySQL database. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −Syntaxbool mysql_select_db( db_name, connection );Followings are the parameters used in this function:Sr.NoParameter & Description1db_nameRequired - MySQL database name to be selected2connectionOptional - if not specified, then the last opened connection by mysql_connect will be used.

How can we delete a MySQL database by using PHP script?

Rishi Rathor
Updated on 22-Jun-2020 13:34:21

134 Views

As we know that PHP provides us the function named mysql_query to delete an existing database.ExampleTo illustrate this we are deleting a database named ‘Tutorials’ with the help of PHP script in the following example −           Deleting MySQL Database                  

Advertisements