answersLogoWhite

0

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");

?>

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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: &lt;?php mysql_query("DELETE FROM table_name WHERE field_name = 44"); ?&gt;


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).


How do you copy a database of mysql in wamp server from one computer to another?

You have several options: * copy the database files from mysql/data/&lt;database_name&gt; to a new mysql Installation * use mysqldump utility to export the data from your database and load it into the new mysql installation * setup replication


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


What is an API Is MySQL an API?

MySQL is not an API MySQL is a database where you store data. An API is how you request information from another website.


How do you retrieve data from one MySQL table and create another MySQL table with the same data in it using PHP?

Execute a SELECT INTO statement on the mysql database: INSERT INTO destination_table (id, first_name, last_name) SELECT id, first_name, last_name from source_table;


How do you retrieve the data from database?

To retrieve data rfrom a mysql database you first need to connect to the database using the mysql connection string(mysql_connect) after that, it's just a matter of executing a query of "SELECT `field1`, `field2` FROM `tablename`" Obviously replacing field 1 and 2 with the fields you want to replace and tablename with the table the data is stored


What is MySQL insert command?

The INSERT command in MySQL allows you to enter a new row of data to a table in your database.


How do you convert an Excel database to a Mysql database?

1. For every sheet you have in Excel, create a matching table in MySQL database 2. Export excel data to a CSV file 3. Load the CSV files into MySQL database using one of the following: 3.1 mysqlimport - Loads tables from text files in various formats 3.2 LOAD DATA INFILE command 3.3 Create the tables with CSV storage engine, replace the CSV file in the database directory


How do you retrieve an image from a database using PHP?

It depends what Database you are using. I personally use MySQL so will explain how you would do it using MySQL. You would have to create the MySQL database. I would store the image URL rather than the actual image. Then call it using PHP and a MySQL query. For Example: $sql = "SELECT * FROM Images WHERE Img_Name = 'img1'"; $query = mysql_query($sql); $array = mysql_fetch_array(query); then you would call it into HTML like so:


How to upload excel sheet data into a MySQL database using JSP and Servlets?

It is very easy to upload excel spreadsheet data into a MySQL database using JSP and servlets. Within Java there is a tool where you can designate the name and location of the file you would like to import. Once you furnish the file name Java server pages will do the work for you.


What is the name of data base service of Wikipedia?

Wikipedia uses a MySQL database.