Remplacement informations de connection MySQL
This commit is contained in:
parent
51661da74b
commit
83683f5408
@ -1246,8 +1246,8 @@ class GoogleMapAPI {
|
||||
|
||||
*/
|
||||
$_ret = array();
|
||||
$this->conid = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
||||
mysql_select_db('sdv1', $this->conid);
|
||||
$this->conid = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
||||
mysql_select_db(MYSQL_DB, $this->conid);
|
||||
$res=mysql_select($this->_db_cache_table, 'lon,lat,precis,adr_num,adr_indRep,adr_typeVoie,adr_libVoie,adr_adrComp0,adr_adrComp1,adr_adrComp2,adr_adrComp3,adr_cp,adr_ville', "address='".addslashes($address)."'");
|
||||
foreach ($res as $_row) {
|
||||
$_ret['lon'] = $_row[0];
|
||||
@ -1279,8 +1279,8 @@ class GoogleMapAPI {
|
||||
if(strlen($address) == 0 || strlen($lon) == 0 || strlen($lat) == 0 || strlen($precis)==0 )
|
||||
return false;
|
||||
|
||||
$this->conid = mysql_pconnect('localhost', 'root', 'catsysyo92');
|
||||
mysql_select_db('sdv1', $this->conid);
|
||||
$this->conid = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
|
||||
mysql_select_db(MYSQL_DB, $this->conid);
|
||||
$tabInsert=array( 'address'=>$address,
|
||||
'lon'=>$lon,
|
||||
'lat'=>$lat,
|
||||
|
Loading…
Reference in New Issue
Block a user