summaryrefslogtreecommitdiff
path: root/app/v1_php/api/mysql_connect.inc.php
blob: 04144808ace8f57a7cbd700cad60e1ab9ea74b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

$mysqlcon=mysql_connect("localhost", "usi2011", "usi2011");
$res=mysql_select_db("usi2011");

if ( ! is_resource($mysqlcon) || $res !== 0) {
	//header 400, Erreur connexion SQL
	echo "Erreur connexion SQL\n";
	exit();
}
?>