answersLogoWhite

0

Use mysql_connect() php function to connect to the mysql.Please refer related link for more details.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you connect sqlserver with HTML?

using php


What is PHP-Nuke?

PHP-Nuke is a Content Management System (CMS) which is written in PHP and uses a database, most commonly a MySQL database, but you can use a number of others such as mSQL, PostgreSQL, ODBC, ADABAS, Sybase or InterBase. Version 7.5 and before are free to use as they are released under GNU General Public License as free software, after are 7.5 you have to pay! There are many plugins to the software which will allow you to add new features to your website.


How you can connect two webpage in php?

You can use: require('filename.extension'); Or: include('filename.extension');


How do you connect MySQL to HTML with Microsoft Office Frontpage?

You can't. Frontpage is just an editor, and you can't connect mySQL to HTML. You can do it with PHP, though.


Can you connect to two MySQL databases on one PHP page?

Yes as long as you change the variable of them


How do you import others codes in java?

using servlets, php, and database we can connect import codes into java


How do you create a webmail application with PHP?

Creating a webmail application in PHP involves using the related POP3 or IMAP libraries to connect to the mail system and cookies/sessions to save authentication information.


How to connect php my admin to my source code?

Here's the code <?php $host = '127.0.01'; // add localhost or server ip address in place of '127.0.01' $user = 'root'; // add username of your phpmyadmin in place of 'root' $pass = 'password_here'; // put your password in place of 'password_here' $connect = mysql_connect($host, $user, $pass); if(!$connect) { // default statement if cannot die("Could not connect to server".mysql_error()); } ?>


How to you connect in mysql database?

Use the following code to connect to your mysql database from the php file. variables are hostname, db_username, db_password - see the code below for the exact connection example. <?php mysql_connect("localhost", "admin", "1admin") or die(mysql_error()); echo "Connected to MySQL<br />"; ?>


How do you connect odbc to php?

Syntax: odbc_connect(string datasource, string username, string password); <?php $host = "localhost"; // The host name varies $user = "root"; // Username also varies in db $pwd = ""; // Password varies in db $connect = odbc_connect($host,$user,$pwd); if(!$connect) { die("Could not establish connection to odbc database"); } ?>


What are the applications of PHP?

The Main purposes are:To connect with databasesThe special Email FunctionThe RSS functionand some others


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