- Home
- Categorie
- Coding e Sistemistica
- Coding
- Errore MySQL strano
- 
							
							
							
							
							
Errore MySQL stranociao a tutti , spero qualcuno possa aiutarmi .... ho questo codice php : $qvr=mysql_query("SELECT * from comuni where frn_region='".$province."' order by city Asc") or die(mysql_error()); 
 if (mysql_num_rows($qvr)>0)
 {
 while($rig=mysql_fetch_array($qvr))
 {
 $p.="<h2 class="h2link"><a href='".$site['dir'].$rig['cityid']."citta-".str_replace(" ","_",strtolower($rig['city'])).".html' class="lien" title="alberghi ".strtolower($rig['city'])." , albergo ".strtolower($rig['city'])." , hotel ".strtolower($rig['city'])." , motel ".strtoupper($rig['city']).""><b> Hotel ".$rig['city']." </b></a></h2>";
 }
 }NON VEDO NULLA DI STRANo .... ma ricevo questo ERRORE : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 
 
- 
							
							
							
							
							
Sembra corretto.. prova a fare la query cosi: $qvr=mysql_query("SELECT * from comuni where frn_region=$province order by city Asc") or die(mysql_error()); dimmi se risolvi. 