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

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


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

?>