65468/connection-with-mysql-server-using-php-how-can-we-do-that
Hey @kartik,
You have to provide MySQL hostname, username and password to make a connection with the MySQL server in mysqli_connect() method or declaring database object of the mysqli class.
Sample code:
$mysqli = mysqli_connect("localhost","username","password"); $mysqli = new mysqli("localhost","username","password");
The above code will helps you to enable connection between them.
In order to retrieve or obtain data from the MySQL database using PHP?
Thank you!!
Hello @kartik, For 'long-lived connection' , you can ...READ MORE
Hello @kartik, Try this query: mysql_query(" SELECT * FROM `table` WHERE `column` ...READ MORE
Hello @kartik, This is possible in HTML5. Example (PHP ...READ MORE
Hello @kartik, Test different ports: $wait = 1; // ...READ MORE
Hello, When the variable is passed as value ...READ MORE
Hello kartik, Actually there are many functions that ...READ MORE
Hello, mysqli_pconnect() function is used for making a persistence ...READ MORE
Hii @kartik, If you want the biggest image ...READ MORE
Hello @kartik, Since the page that is sending ...READ MORE
Hello @kartik, This should work in SQL Server: update ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.