Remplacement informations de connection MySQL
This commit is contained in:
parent
11b88ccf99
commit
51661da74b
@ -79,11 +79,16 @@ try {
|
||||
print_r($fault);
|
||||
die();
|
||||
}
|
||||
|
||||
/*
|
||||
print "<pre>";
|
||||
print_r($annonces);
|
||||
print "</pre>";
|
||||
exit;
|
||||
*/
|
||||
/** Récupération du site WEB et tel/fax entreprise **/
|
||||
$conid = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
||||
$conid = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
||||
if (!($conid === false)) {
|
||||
if (mysql_select_db('sdv1', $conid) === false) {
|
||||
if (mysql_select_db(MYSQL_DB, $conid) === false) {
|
||||
die('Base de données indisponible');
|
||||
}
|
||||
}
|
||||
@ -175,7 +180,8 @@ try {
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30"> </td>
|
||||
<td width="550" colspan="3" class="StyleInfoData"><?
|
||||
<td width="550" colspan="3" class="StyleInfoData">
|
||||
<?
|
||||
$tabSource=explode('-', $ann['BodaccCode']);
|
||||
$source=$tabSource[0];
|
||||
$idSource=@$tabSource[1];
|
||||
@ -189,8 +195,10 @@ try {
|
||||
echo '<img src="./img/logo_jo.png"/> Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);
|
||||
else
|
||||
echo '<img src="./img/logo_jo.png"/> Source BODACC n°'.$ann['BodaccNum'].' '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. Département n°<?=$ann['Departement']?>. <!--<a href="/?page=identite&siret=<?=$ann['TribunalSiret']?>">--><a href="/?page=competences&siret=<?=$siret?>&type=tri"><?=$ann['Tribunal']?></a>.<?
|
||||
|
||||
if ($ann['dateInsertionSD']<>'') echo 'Entrée en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']);
|
||||
?></td>
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}/*<?=WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>*/
|
||||
|
@ -4,9 +4,9 @@
|
||||
$idCommande=0;
|
||||
|
||||
//include_once(realpath(dirname(__FILE__). '/../../framework/default/_includes/mysql.php'));
|
||||
$con = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
||||
$con = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
||||
if (!($con === false)) {
|
||||
if (mysql_select_db('sdv1', $con) === false)
|
||||
if (mysql_select_db(MYSQL_DB, $con) === false)
|
||||
echo ('<!--Could not select database: ' . mysql_error() .'-->');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user