answersLogoWhite

0

if you know SQL language, you can run any command by using PHP's mysql_query() function.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

What is a database in PHP?

Database = Where you save your data (ex: if a user fill your registration form, entered data should be saved somewhere, that's database) Usually in PHP we use MySQL Database.


How do you delete data from a MySQL database using PHP?

To delete data from your MySQL database you need to use the mysql_query() function. Please see the example below: <?php mysql_query("DELETE FROM table_name WHERE field_name = 44"); ?>


How do you update data in a MySQL database using PHP?

To update data from your MySQL database you need to use the mysql_query() function. Please see the example below: <?php mysql_query("UPDATE table_name SET field_name_2 = '77' WHERE field_name = 44"); ?>


Which database is good mysql or PHP?

PHP is a programming language, but MySQL is a database management system. They are two entirely different objects, and as a result, they are utilised for two quite different purposes. To learn more about data science please visit- Learnbay.co


Where can you find some php scripts that support postgresql?

Use PDO (PHP DATA OBJECTS) to write your queries. They include support most major database


How do you close a MySQL database connection using PHP?

To close your MySQL database connection you need to use the mysql_close() function. Please see the example below: <?php mysql_close(); ?> If your connection data is stored in a variable you would close the connection like this instead: <?php mysql_close($db_conn); ?> That's useful for if you're using more than one database connection in a PHP script.


What are the advantages and disadvantages of PHP with mysql?

Ultimately PHP is a programming language and MySQL is a database language. Using PHP with MySQL is a nice combination with built-in support and the simplicity of it all. However, there aren't a lot of disadvantages of using PHP with a database, it just allows for better data organization and whatnot. There are definitely advantages and disadvantages to using a database other than MySQL (such as MongoDB or PostgreSQL).


What are the different parts to a database?

There are four major parts to a database. Which are tables, forms, reports and queries.Tables- Where all the information and data is stored within a database.Forms- Forms are used to enter, edit or deleted data in a database one record at a time.Reports- A report makes a paper copy of the data contained within a database.Queries and Sorts- Queries are a special database tool that allows you to search a database for a specific records based on certain information.*Web-based databases are often written in PHP and/or SQL, script languages frequently used by web developers.


How can i Have php post to self with mysql?

Mysql is an Database where Data from HTML forms will be inserted to it by some scripts like ASP 3 (classic), ASP.NET, PHP, ColdFusion and... What you need is a form (By HTML), an Database and table in Mysql and PHP to insert data from your form to the table. mysql insert command is: INSERT INTO table_name_here (column1, column2, ..) VALUES (value_of_column_1, value_of_column_2, ...)


How do you retrieve data from database in PHP?

There are many factors that must be taken into consideration when looking to retrieve data from a database, such as 'what database management system do i posses/supported by my host?' in most cases people looking to retrieve data using php posses SQL database management systems such as MySQL in their control panel which can be used to create, delete and alter databases, along with creating multiuser access to the databases.once the databases are created and their respected users are added and given their database privileges, one can begin adding and proccessing data to and from a database.assuming that all the previous has been acheived and there is data in the database, below is a set of php/mysql functions that can process multiple rows of data in a database table.$link = mysql_connect ("localhost", "USERNAME HERE", "PASSWORD HERE") or die (mysql_error());$mysql_db = mysql_select_db ("DATABASE NAME") or die (mysql_error());$db_search = mysql_query("SELECT * FROM `TABLE NAME`");if (@mysql_num_rows($db_search) > 0) {while($data = mysql_fetch_array($db_search)) {}}first you connect to your host, then select the database, query a selected table, check for rows of data in the table, place the array of data into a variable, and do what you please with the data now contained within that variable.for more information go to php.net/mysql


How do you create a database using PHP?

The following are the fundamental procedures for creating a MySQL database with PHP: As demonstrated in this article, connect to the MySQL server from your PHP script. If the connection is successful, construct a database using SQL and save it in a string variable. Carry out the query. To learn more about data science please visit- Learnbay.co


How do you handle database in php?

Please refer link. The presentation gives complete understanding of how to deal with database (Mysql) with php.