+ 6
How to connect the database with php
9 ответов
+ 9
well its simple you can use wamp or xamp sever to run php and use php myadmin to connect the database..
+ 8
$conn=mysql_connect("localhost","root","");
mysql_select_db("<database name>",$conn);
$query="";
mysql_query("$query","$conn");
+ 2
to connect to MySQL database we have following commands search for each of them on Google to learn there usage
$conn=mysql_connect("localhost","root","");
mysql_select_db("<database name>",$conn);
mysql_query("<database query>");
+ 1
yes with the help of MYSQL
+ 1
I recommend using PDO to interface with MySQL.
+ 1
using MySQL
0
Argh. Wenn I am reading mysql. Dont use it. It have been removed in PHP 7. Please use mysqli. And escape variables, they are going to be written in the database. And use statements to run sql query. Or sql injection is possible.
0
Which framework !!!
0
use Mysqli its new or good