answersLogoWhite

0

For example if we have database named "users", and we need user information from table "user_info", which has next parameters: 'userId', 'userName','Name','Age'. $sel = mysql_query("SELECT * FROM users.user_info WHERE userId='$methodId'"); $ar = mysql_fetch_array($sel); echo "

User Id is:".$ar['userId'].", UserName: ".$ar['userName'].", Name: ".$ar['Name'].", Age: ".$ar['Age']."

";
User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

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/<database_name> 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


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.


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


What is the name of data base service of Wikipedia?

Wikipedia uses a MySQL database.


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 retrieve 10 records from table in mysql?

For work with mysql database make use of software below to open/read/scan/export-import mysql data


How do you get data from database when you pick up item from database list?

Here is a simple method for connecting to your MySql database and outputting some data. <?php #Connect to MySQL database $db=mysql_connect("localhost","YourDatabaseUserName","YourDatabasePassword"); mysql_select_db("YourDatabaseName",$db) or die ("cant change"); #Select data from database table called customers. $result = mysql_query("select * from customers Order By LastName, FirstName",$db); while ($row = mysql_fetch_array($result)) { $FirstName = $row["FirstName"]; $LastName = $row["LastName"]; echo "$LastName, $FirstName"; ?><br><? } ?>


What is MySQL Databases?

MySQL is a database management system designed to manage relational databases. It is an open source software operated by Oracle. MySQL gives you the ability to modify its source code to suit your needs. To implement data-related tasks in MySQL databases you could use some database GUI, for example dbForge Studio for MySQL.


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


What type of job does data modeling?

One type of job that does data modeling involves web design and creating MySQL databases. To create a MySQL database one must have knowledge in data modeling.