%PDF- %PDF-
Direktori : /home/jalalj2hb/public_html/ftm-admin/connections/ |
Current File : /home/jalalj2hb/public_html/ftm-admin/connections/ftm-admin.php |
<?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname = "localhost"; $database = "gym-fes"; $username = "root"; $password = ""; $dbs = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR); mysql_select_db('gestion_location',$dbs); mysql_query("SET NAMES 'utf8'"); function js_str($s) { return '"' . addcslashes($s, "\0..\37\"\\") . '"'; } function js_array($array) { $temp = array_map('js_str', $array); return '[' . implode(',', $temp) . ']'; } function js_str_($s) { return addcslashes($s, "\0..\37\"\\"); } function js_array_($array) { $temp = array_map('js_str_', $array); return '[' . implode(',', $temp) . ']'; } ?>