How do you connet mysql database with php?
Answer / Km. Parveen Khan
To connect to a MySQL database in PHP, you can use the mysqli extension. Here's an example: <?php $conn = new mysqli("localhost", "username", "password", "database"); if ($conn->connect_error) {n die("Connection failed: " . $conn->connect_error);n}n?>
| Is This Answer Correct ? | 0 Yes | 0 No |
What is "print" in php?
What is the difference between array_map () and array_shift ()?
What is the mysql injection?
Explain me what are the main error types in php and how do they differ?
What is the difference between InnoDb tables and MyIsam Tables in php
how to send mail in php but mail should be send in inbox not in spam.....:(
how to register website in internet
What is c++ polymorphism?
What are the different types of php variables?
What is get method in java?
display selected value in dropdown list through javascript without page refresh
is that "enumerated array" equal to "numeric array"?