' ', 'auto%20moto_AM'=>'auto%20transport_AM', 'dom=atractii%20turistice%20%3E%20in%20zona%20baia%20mare_TT_ATZBM&f=1'=>'dom=turism,%20cazare_TT_ATZBM&f=1', '%20'=>'+', ','=>''); $url_uri=$_SERVER['REQUEST_URI']; foreach($arayul as $key=>$val) { if(strstr($url_uri, $key)) { $url_uri=str_replace($key, $val, $url_uri); $nr_temp=1; //header("Location: ".str_replace($key, $val, $_SERVER['REQUEST_URI']), true, 301); //exit; } } if($nr_temp==1) { header("Location: ".$url_uri, true, 301); exit; } if(isset($_GET['orase']) and !empty($_GET['orase']) and $_SERVER['SERVER_NAME']!="www.afaceriro.ro" and $_SERVER['SERVER_NAME']!="afaceriro.ro" and $_SERVER['SERVER_NAME']!="www.afaceriromania.ro" and $_SERVER['SERVER_NAME']!="afaceriromania.ro") { header("Location: http://www.afaceriromania.ro".$_SERVER['REQUEST_URI'], true, 301); exit; } include('include/config.php'); include('functii.php'); if(strstr($_SERVER['REQUEST_URI'], '%20') or strstr($_SERVER['REQUEST_URI'], ',')) { $url_uri=str_replace('%20', '+', $_SERVER['REQUEST_URI']); $url_uri=str_replace(',', '', $url_uri); header("Location: ".$url_uri, true, 301); exit; } $limit=25; /* if($_SERVER['SERVER_NAME']=="www.afaceriromania.ro" or $_SERVER['SERVER_NAME']=="afaceriromania.ro" or $_SERVER['SERVER_NAME']=="www.afaceriro.ro" or $_SERVER['SERVER_NAME']=="afaceriro.ro" or $_SERVER['SERVER_NAME']=="www.bucuresti0.ro" or $_SERVER['SERVER_NAME']=="bucuresti0.ro") { $limit=25; } */ $curent=0; if(isset($_GET['page']) and !empty($_GET['page'])) $curent=(int)($_GET['page']); if($curent==0) $curent=1; $st=($curent-1)*$limit; //------------------------------------------------ $get_i=''; if(isset($_REQUEST['i']) and !empty($_REQUEST['i'])) { $get_i=$_REQUEST['i']; } if(isset($_REQUEST['indiciu']) and !empty($_REQUEST['indiciu'])) { $get_i=$_REQUEST['indiciu']; } if($get_i!='') { $sql_negative='SELECT * FROM `cuvinte_negative` WHERE `nr` = 0'; $r_negative=mysql_query($sql_negative); while($res_negative=mysql_fetch_array($r_negative)) { if(strstr($get_i, $res_negative['cuv_negative']) or $get_i==$res_negative['cuv_negative']) { header("Location: http://www.afaceriromania.ro", true, 301); exit; } } $sql_negative='SELECT * FROM `cuvinte_negative` WHERE `nr` = 1'; $r_negative=mysql_query($sql_negative); while($res_negative=mysql_fetch_array($r_negative)) { if(strstr($get_i, ' '.$res_negative['cuv_negative'].' ') or strstr($get_i, $res_negative['cuv_negative'].' ') or strstr($get_i, ' '.$res_negative['cuv_negative']) or $get_i==$res_negative['cuv_negative']) { header("Location: http://www.afaceriromania.ro", true, 301); exit; } } } //---------------------------------------------------------- $current_dom=''; if(isset($_GET['dom']) and !empty($_GET['dom'])) $current_dom=($_GET['dom']); $current=explode("_", $current_dom); $current_d2=@$current[0]; $current_d0=@$current[1]; $current_d1=@$current[2]; $get_orase=''; $orase_caut=''; $judet=''; $f=''; $titlu=''; $orase_get=''; $orase_get_antet=''; $oras=''; $judetul=''; $ahref_index=''; ?> $url_value) { if($_SERVER['SERVER_NAME']=='www.'.$url_value or $_SERVER['SERVER_NAME']==$url_value) { $url_cod=$url_key; } } if($_SERVER['SERVER_NAME']=='www.romm.ro' or $_SERVER['SERVER_NAME']=='romm.ro' or $_SERVER['SERVER_NAME']=='www.traseeurbane.ro' or $_SERVER['SERVER_NAME']=='traseeurbane.ro') { $url_cod='Maramures'; } if(isset($_GET['orase']) and !empty($_GET['orase'])) { $orase_get='orase='.$_GET['orase'].'&'; $orase_get_antet='/?orase='.$_GET['orase'].'&dom=0'; if($_SERVER['SERVER_NAME']=="www.afaceriro.ro" or $_SERVER['SERVER_NAME']=="afaceriro.ro" or $_SERVER['SERVER_NAME']=="www.afaceriromania.ro" or $_SERVER['SERVER_NAME']=="afaceriromania.ro") { $judet=explode('_', $_GET['orase']); $judetul=" and `COD` like '%".$judet[0]."%'"; if(!empty($judet[1])) { $oras=' '.$judet[1]; }else{ $oras=' '.$_GET['orase']; } } } switch ($url_cod) { case "Romania": $titlu_oras=""; $ati_cautat=" in Romania"; $get_orase="Romania"; if($oras=='') $oras=' Romania'; $orase_caut=' in'.$oras; $ahref_index='Afaceri'.$oras.''; if(($_SERVER['SERVER_NAME']=="www.afaceriromania.ro" or $_SERVER['SERVER_NAME']=="afaceriromania.ro") and $oras==' Romania') $ahref_index='Afaceri Romania'; if(($_SERVER['SERVER_NAME']=="www.afaceriro.ro" or $_SERVER['SERVER_NAME']=="afaceriro.ro") and $oras==' Romania') $ahref_index='Afaceri RO'; break; case "Maramures": $titlu_oras=""; $ati_cautat=' in Baia Mare'; $get_orase="Baia Mare"; $orase_caut=' in Baia Mare'; $oras=' Baia Mare'; $ahref_index='Baia Mare'; break; case "Bihor": $titlu_oras=""; $ati_cautat=' in Oradea'; $get_orase="Oradea"; $orase_caut=' in Oradea'; $oras=' Oradea'; $ahref_index='Oradea'; break; case "Cluj": $titlu_oras=""; $ati_cautat=' in Cluj Napoca'; $get_orase="Cluj Napoca"; $orase_caut=' in Cluj Napoca'; $oras=' Cluj Napoca'; $ahref_index='Cluj Napoca'; break; case "Satu Mare": $titlu_oras=""; $ati_cautat=" in Satu Mare"; $get_orase="Satu Mare"; $orase_caut=' in Satu Mare'; $oras=' Satu Mare'; $ahref_index='Afaceri Satu Mare'; break; case "Timis": $titlu_oras=""; $ati_cautat=" in Timisoara"; $get_orase="Timisoara"; $orase_caut=' in Timisoara'; $oras=' Timisoara'; $ahref_index='Timisoara'; break; case "Bucuresti": $titlu_oras=""; $ati_cautat=" in Bucuresti"; $get_orase="Bucuresti"; $orase_caut=' in Bucuresti'; $oras=' Bucuresti'; $ahref_index='Bucuresti'; if($_SERVER['SERVER_NAME']=="www.bucuresti0.ro" or $_SERVER['SERVER_NAME']=="bucuresti0.ro") $ahref_index='Bucuresti'; break; default: $titlu_oras=""; $ati_cautat=$orase_caut; $get_orase="Romania"; if($oras=='') $oras=' Romania'; $orase_caut=' in'.$oras; $ahref_index='Afaceri'.$oras.''; if(($_SERVER['SERVER_NAME']=="www.afaceriromania.ro" or $_SERVER['SERVER_NAME']=="afaceriromania.ro") and $oras==' Romania') $ahref_index='Afaceri Romania'; if(($_SERVER['SERVER_NAME']=="www.afaceriro.ro" or $_SERVER['SERVER_NAME']=="afaceriro.ro") and $oras==' Romania') $ahref_index='Afaceri RO'; break; } /*if($_SERVER['SERVER_NAME']=="www.bucuresti0.ro" or $_SERVER['SERVER_NAME']=="bucuresti0.ro") { $oras=' Bucuresti'; } if($_SERVER['SERVER_NAME']=="www.afacericlujnapoca.ro" or $_SERVER['SERVER_NAME']=="afacericlujnapoca.ro") { $oras=' Cluj Napoca'; }*/ $oras_sim=str_replace(' in', '', $oras); if(isset($_REQUEST['orase']) and !empty($_REQUEST['orase'])) { $judet=explode('_', $_REQUEST['orase']); $sql_judete='SELECT * FROM `judete` WHERE `nume_judet` like "'.$judet[0].'"'; $r_judete=mysql_query($sql_judete); $res_judete=mysql_fetch_array($r_judete); if($res_judete!='') { if(!empty($res_judete['resedinta'])) { $get_orase=$res_judete['resedinta']; $orase_caut=' in '.$res_judete['resedinta']; }else{ $get_orase=$_REQUEST['orase']; $orase_caut=' in '.$_REQUEST['orase']; } } } /*if($url_cod="Romania" and $get_orase=='') { $titlu_oras="Romania"; $ati_cautat=" in Romania"; }*/ //---------------------------------------------------------- $url_cod_titlu='Romania'; $judet=''; $where_str_titlu=''; if(isset($_REQUEST['orase']) and !empty($_REQUEST['orase']) and ($_SERVER['SERVER_NAME']=='www.afaceriro.ro' or $_SERVER['SERVER_NAME']=='afaceriro.ro' or $_SERVER['SERVER_NAME']=='www.afaceriromania.ro' or $_SERVER['SERVER_NAME']=='afaceriromania.ro')) { $judet=explode('_', $_REQUEST['orase']); $_SESSION['caut_oras']='';//$judet[0] $sql_judete='SELECT * FROM `judete` WHERE `nume_judet` like "'.$judet[0].'"'; $r_judete=mysql_query($sql_judete); if(mysql_fetch_array($r_judete)!='') { if($judet[0]!='Romania') $where_str_titlu.= " and `COD` like '".$judet[0]."%'"; } }else{ foreach($array_url as $url_key => $url_value) { if($_SERVER['SERVER_NAME']=='www.'.$url_value or $_SERVER['SERVER_NAME']==$url_value) $url_cod_titlu=$url_key; } if($_SERVER['SERVER_NAME']=='www.traseeurbane.ro' or $_SERVER['SERVER_NAME']=='traseeurbane.ro') $url_cod_titlu='Maramures'; if($_SERVER['SERVER_NAME']=='www.romm.ro' or $_SERVER['SERVER_NAME']=='romm.ro') $url_cod_titlu='Maramures'; if($url_cod_titlu!='Romania') $where_str_titlu.= " and `COD` like '%".$url_cod_titlu."%'"; } //---------------------------------------------------------- $cuv_array=array(); $sql_web_cuvinte='SELECT * FROM `baza` WHERE `VIZIBIL` = 1'.$where_str_titlu.' order by `CREDITE` desc, `DATA` desc limit '.$st.', '.$limit; $r_web_cuvinte=mysql_query($sql_web_cuvinte); while($res_web_cuvinte=mysql_fetch_array($r_web_cuvinte)) { $cuvinte_cheie=''; $cuvinte_cheie=strtolower($res_web_cuvinte['OBIECT_ACTIVITATE']); $cuvinte_cheie=str_replace(', ', ',', $cuvinte_cheie); $cuv_cheie=explode(",", $cuvinte_cheie); $nr_cuvinte=1; foreach($cuv_cheie as $c_cheie) { if($nr_cuvinte<=18) { if(strlen($c_cheie)>=5) $cuv_array[]=$c_cheie; $nr_cuvinte=$nr_cuvinte+1; }else{ break; } } } $arrayul=array_count_values($cuv_array); arsort($arrayul); //print_r($arrayul); $nr=1; $titlu_cuvinte=''; foreach($arrayul as $key=>$val) { if($nr<=1) { $titlu_cuvinte.=$key.', '; $nr=$nr+1; }else{ break; } } $titlu_cuvinte=substr($titlu_cuvinte, 0, -2); //--------------------------------------------------------- if($titlu_oras!='') { $titlu=$titlu_oras.", ".$titlu_cuvinte;//.str_replace("_", " / ", $get_orase) }else{ if($get_orase!='') { $titlu=$get_orase.", ".$titlu_cuvinte; }else{ $titlu=$titlu_cuvinte; } } $antetul=str_replace("_", " / ", $get_orase)." produse, servicii, firme, ".$titlu_cuvinte; $antetul_sim="produse, servicii, firme, ".$titlu_cuvinte; $s='baia mare'; $descriere=' | Acces rapid la informatii firme, anunturi, servicii, produse, afaceri in '.$get_orase; if($curent<2) { if($titlu_oras!='') { $titlu="Afaceri ".$titlu_oras.', produse, servicii, firme'; }else{ $titlu="Afaceri ".$get_orase.', produse, servicii, firme'; } $antetul=str_replace("Afaceri ", "", $titlu); $antetul_sim=$titlu; } if(isset($_REQUEST['i']) and !empty($_REQUEST['i']) and $_REQUEST['i']!='pule' and $_REQUEST['i']!='pizde' and $_REQUEST['i']!='filme xxx' and $_REQUEST['i']!='sex cu cai' and $_REQUEST['i']!='sex cai si femei') { if($get_orase != '' and $get_orase != 'Romania') { $i_bm=str_replace(" baia mare", "", strtolower($_GET['i'])); $i_bm=str_replace("baia mare ", "", $i_bm); $i_bm=str_replace("baia mare", "", $i_bm); $i_bm=str_replace(" maramures", "", $i_bm); $i_bm=str_replace("maramures ", "", $i_bm); $i_bm=str_replace("maramures", "", $i_bm); }else{ $i_bm=strtolower($_GET['i']); } $titlu=$i_bm.' | Afaceri '.str_replace("_", " / ", $get_orase); $antetul=$i_bm.' | Afaceri '.str_replace("_", " / ", $get_orase); $antetul_sim=$i_bm; $s=$i_bm; $i_temp=str_replace(strtolower($get_orase), "", strtolower($_GET['i'])); $descriere=' | Afaceri '.$get_orase.' informatii, produse, servicii, firme';// Afaceri, firme din domeniul '.$i_temp.' }else{ if(isset($_REQUEST['indiciu']) and !empty($_REQUEST['indiciu'])) { $titlu=$_REQUEST['indiciu'].' | Afaceri '.str_replace("_", " / ", $get_orase); $antetul=$_REQUEST['indiciu'].' | Afaceri '.str_replace("_", " / ", $get_orase); $antetul_sim=$_REQUEST['indiciu']; $indiciu_temp=str_replace(" ".strtolower($get_orase), "", strtolower($_REQUEST['indiciu'])); $descriere=' | Afaceri '.$get_orase;// Afaceri, firme din domeniul '.$indiciu_temp.' }else{ if(!empty($current_d2)) { $titlu=strtolower($current_d2).' | Afaceri '.str_replace("_", " / ", $get_orase); $titlu=str_replace("maramures", "Maramures", $titlu); $titlu=ucfirst($titlu); $antetul=strtolower($current_d2).' | Afaceri '.str_replace("_", " / ", $get_orase); $antetul_sim=strtolower($current_d2); $s=strtolower($current_d2); $descriere=' | Afaceri '.$get_orase;// Informatii firme, anunturi, servicii, produse, afaceri din domeniul '.strtolower($current_d2).' } } } if(isset($_GET['page']) and !empty($_GET['page'])) $curent=(int)($_GET['page']); $i_pag=''; if($curent!='') { $titlu=$titlu.' | pagina '.$curent; $i_pag=' | pagina '.$curent; } $titlu_temp=$titlu; $titlu_temp=str_replace(" | Romania", "", $titlu_temp); $titlu_temp=str_replace(" | Romania ", "", $titlu_temp); $titlu_temp=str_replace(" | Romania", "", $titlu_temp); $titlu_temp=str_replace(" | Romania ", "", $titlu_temp); $titlu_temp=str_replace("Afaceri ", "", $titlu_temp); $titlu_temp=str_replace(" | ", "|", $titlu_temp); $titlu_temp=str_replace(" | ", "|", $titlu_temp); $titlu_temp=str_replace(" | ", "|", $titlu_temp); $titlu_temp=str_replace("|", ", ", $titlu_temp); $titlu_temp=str_replace("Romania, firme, produse, servicii", "Produse, servicii, firme", $titlu_temp); $titlu_temp=str_replace("Romania ", "", $titlu_temp); $titlu_temp=str_replace("Romania, ", "", $titlu_temp); $titlu_temp=str_replace(", Romania", "", $titlu_temp); //$titlu_temp=str_replace("firme, produse, servicii", "afaceri", $titlu_temp); echo ''.$titlu_temp.''; ?> '; echo ''; ?> '.$antetul.$antet_sus; $turn_trasee='sigla-afaceriro.jpg'; if($_SERVER['SERVER_NAME']=="www.afaceribaiamare.ro" or $_SERVER['SERVER_NAME']=="afaceribaiamare.ro") $turn_trasee='sigla-baiamare.jpg'; //if($_SERVER['SERVER_NAME']=="www.bucuresti0.ro" or $_SERVER['SERVER_NAME']=="bucuresti0.ro" or $_SERVER['SERVER_NAME']=="www.afaceribucuresti.com" or $_SERVER['SERVER_NAME']=="afaceribucuresti.com") $turn_trasee='sigla_bucurestiro.jpg'; ?>

=6) $_SESSION['contben']=1; ?>

"afaceri") //{ $antetul=ucfirst($antetul); $antetul=str_replace("Afaceri ", "", $antetul); $antet_sus=str_replace("Afaceri ", "", $antet_sus); $antetul=str_replace("Romania, ", "", $antetul); $antet_sus=str_replace("Romania, ", "", $antet_sus); $antetul=str_replace("Romania ", "", $antetul); $antet_sus=str_replace("Romania ", "", $antet_sus); $antetul=str_replace(" | Romania", "", $antetul); $antet_sus=str_replace(" | Romania", "", $antet_sus); //echo '
antetul='.$antetul.'
'; //echo 'antet_sus='.$antet_sus.'
'; //echo 'orase_get='.$orase_get.'
'; //$antetul=str_replace(" Romania", "", $antetul); $antetul=str_replace("Romania, firme, produse, servicii", "Produse, servicii, firme", $antetul); if(isset($_GET['i']) and !empty($_GET['i'])) { echo ''.$antetul.$antet_sus.$i_pag.''; }else{ if(isset($_REQUEST['indiciu']) and !empty($_REQUEST['indiciu'])) { echo ''.$antetul.$antet_sus.$i_pag.''; }else{ if(isset($_GET['dom']) and !empty($_GET['dom'])) { if($_GET['f']==1) $f='&f=1'; echo ''.$antetul.$antet_sus.$i_pag.''; }else{ if(!empty($orase_get) and ($_SERVER['SERVER_NAME']=="www.afaceriro.ro" or $_SERVER['SERVER_NAME']=="afaceriro.ro" or $_SERVER['SERVER_NAME']=="www.afaceriromania.ro" or $_SERVER['SERVER_NAME']=="afaceriromania.ro")) { echo ''.$antetul.$antet_sus.$i_pag.''; }else{ echo ''.$antetul.$antet_sus.$i_pag.''; } } } } //echo '
'; //echo ' | '; $x=8; $xx=10; $cuv_sim_antet=''; $cuv_similare=''; $antetul_sim=str_replace(",", "", $antetul_sim); $similar=explode(" ", $antetul_sim); if($similar[2]<>'' and $similar[4]=='') { $x=5; $xx=8; } if($similar[4]<>'') { $x=3; $xx=6; } foreach($similar as $sim) { if(strlen($sim)>2) { $nr_sim=0; $sql_cauta='SELECT DISTINCT `cauta` FROM `caut` WHERE `cauta` like "'.$sim.'%" order by `data` desc limit '.$st.', '.$limit; $r_cauta=mysql_query($sql_cauta); while($res_cauta=mysql_fetch_array($r_cauta)) { $cautarea=strtolower($res_cauta['cauta']); $da_temp=''; $cautarea_temp=explode(" ", $cautarea); foreach($cautarea_temp as $ct_temp) { $sql_ct_temp="SELECT `OBIECT_ACTIVITATE` FROM `baza` WHERE `OBIECT_ACTIVITATE` like '%".$ct_temp."%'".$judetul; $r_ct_temp=mysql_query($sql_ct_temp); //$res_ct_temp=mysql_fetch_array($r_ct_temp); //if(!empty($res_ct_temp['ID'])) //echo $sql_ct_temp.'
'; $numResults=0; if(!empty($r_ct_temp)) $numResults = mysql_num_rows($r_ct_temp); if($numResults > 0) { $da_temp.='d'; }else{ $da_temp.='n'; } } //echo 'cuv='.$ct_temp.'
'; //echo 'da_temp='.$da_temp.'
'; if(!strstr($da_temp, 'n') and $da_temp!='n') { /* $cautarea_2=str_replace(strtolower($get_orase), "", strtolower($cautarea)); $cautarea_2=str_replace(strtolower($oras_sim), "", $cautarea_2); if(!empty($get_orase)) { $cautarea_2=$cautarea_2.' '.$get_orase; }else{ $cautarea_2=$cautarea_2.$oras_sim; } */ if($nr_sim<$x) $cuv_sim_antet.=''.$cautarea.', '; //if($nr_sim>=$x) $cuv_similare.=''.$res['cauta'].', '; $nr_sim=$nr_sim+1; if($nr_sim>$x) break; } } } } $cuv_sim_antet=substr($cuv_sim_antet, 0, -2); $cuv_v=explode(", ", $cuv_sim_antet); //sort($cuv_v); $cuv_unice = array_count_values($cuv_v); $cuv_sim_antet=""; foreach($cuv_unice as $key => $value) { $cuv_sim_antet.=$key.', '; } $cuv_sim_antet=substr($cuv_sim_antet, 0, -2); //echo '<<<|'.$_SERVER['REQUEST_URI'].'|>>>'; if($curent<2 and $_SERVER['REQUEST_URI']=='/') { $cuv_sim_antet=''; if($_SERVER['SERVER_NAME']=="www.afaceribaiamare.ro" or $_SERVER['SERVER_NAME']=="afaceribaiamare.ro") { //'calculatoare','internet','livrari','firme mobilier','firme proiectare','firme asigurari','alarme','accesorii','termopan','amenajari','finisaje','afaceri online', /*$array_pg1=array('afaceri Baia Mare','firme Baia Mare','afaceri imobiliare','afaceri mobila','anunturi', 'agentii de turism','cazare hotel, pensiune','restaurant','nunti','firme instalatii','electrice','firme constructii', 'firme transport','service auto','piese');*/ $array_pg1=array('afaceri Baia Mare','afaceri online','afaceri internet','afaceri firme','firme Baia Mare','fieme proiectare', 'firme instalatii','electrice','constructii','termopan','mobila','accesorii','calculatoare','agentii imobiliare','asigurari', 'auto','piese auto','service auto','transport','turism Maramures','pensiuni Maramures','hoteluri Baia Mare','cazare Baia Mare', 'restaurante Baia Mare','nunti','livrari','ambalaje','tipografii'); foreach($array_pg1 as $cautarea_temp) { $cuv_sim_antet.=''.$cautarea_temp.', '; } }else{ $array_pg1=array('afaceri','afaceri online','afaceri internet','afaceri firme','firme','fieme proiectare', 'firme instalatii','electrice','constructii','termopan','mobila','accesorii','calculatoare','agentii imobiliare','asigurari', 'auto','piese auto','service auto','transport','turism','pensiuni','hoteluri','cazare', 'restaurante','nunti','livrari','ambalaje','tipografii'); foreach($array_pg1 as $cautarea_temp) { $cuv_sim_antet.=''.$cautarea_temp.', '; } } $cuv_sim_antet=substr($cuv_sim_antet, 0, -2); } echo ' | Cautari similare: '.$cuv_sim_antet.''; //} ?>




Cazare, turism
   Maramures, Baia Mare

'.$res['DOMPRINC']./*$oras.*/' '; else $str.=''; if(strcmp($current_dom,$res['NRPRINC'])==0) $str.=subcategorii($res['NRPRINC'], $current_domenii).""; } echo $str; echo ''; } else { while($res=mysql_fetch_array($r)) { if(strcmp($current_dom,$res['NRPRINC'])==0 and empty($current_sub)) $str.=''; else $str.=''; if(strcmp($current_dom,$res['NRPRINC'])==0) $str.=subcategorii($res['NRPRINC'], $current_domenii, $res['DOMPRINC']).""; } echo $str; echo ''; } function subcategorii($id, $id1, $domprinc) { global $orase_get, $get_orase, $oras; /*if($id==99) $sql="SELECT * FROM `domenii` WHERE 1"; else*/ $sql="SELECT * FROM `domenii` WHERE PRINC='$id' order by DOMENII"; //$sql = "SELECT DISTINCT domenii.NR, domenii.DOMENII, baza.DOM01 FROM domenii, baza WHERE domenii.PRINC = '$id' order by domenii.DOMENII"; $r=mysql_query($sql); $str=""; while($res=mysql_fetch_array($r)) { $sql_1= "SELECT DISTINCT DOM01 FROM `baza` WHERE DOM01 like '%".$res['NR']."%'"; $r_1=mysql_query($sql_1); while($res_1=mysql_fetch_array($r_1)) { if(!empty($sql_1)) { $res_dom=str_replace("&", "%26", $res['DOMENII']); $res_dom=inlocuieste_pauze($res_dom); //echo 'idl='.$id1.' | res_dom='.$res_dom.'
'; if(strcmp($id1,strtolower(str_replace("+", " ", $res_dom)))==0) { $str.='"; "".$res['']."
"; } else { $str.='"; "".$res['']."
"; } break; } } } if(empty($str)) { return ""; }else{ return "".$str; } } /*$href="index.php?dom=0&limita=150&litera="; for($i=1;$i<26;$i++) { $litere.="".chr(64+$i)." "; } echo $litere."".chr(64+$i).""; strtolower, ucwords*/ ?>

Nunti, restaurante
   Baia Mare, Maramures


toate domeniile in ordine alfabetica | domenii active ".chr(64+$i)." "; } echo ''.$litere.''.chr(64+$i).''; */ /*$literedom=""; $hrefdom="indexdom.php?litdom="; for($i=1;$i<26;$i++) { $literedom.="".chr(64+$i)." "; } echo $literedom."".chr(64+$i)."";*/ ?>
Index alfabetic:
'.chr(64+$i).' '; } echo $litere."".chr(64+$i).""; ?>
Ati cautat:
Cauta produse, servicii, firme in Baia Mare, Oradea si alte localitati

> expresii > cuvinte > titlu judete