XanderX Posted January 9, 2007 Share Posted January 9, 2007 Hi, This is my table:[img]http://www.peopleday.it/img/richiesta.gif[/img]I use this simple script for stamp table's record:[code]$db=mysql_connect($dbhost,$dbuser,$dbpw)or die ("Errore durante la connessione al database"); $sql="SELECT DISTINCT nazione FROM offerta order by nazione asc"; $result=mysql_db_query("paesi",$sql,$db); while ($row=mysql_fetch_array($result)) {echo "$row[nazione] --> $row[citta1] --> $row[citta2]<br>";}[/code]My page show results in this form :---------------------------------------------------AUSTRIA --> Danubio -- > Viaggio1AUSTRIA --> Danubio -- > Viaggio2AUSTRIA --> Vienna -- > BELGIO --> Amistad -->---------------------------------------------------Can I show my results in this form ?---------------------------------------------------AUSTRIADanubio --> Viaggio 1Danubio --> Viaggio 2ViennaBELGIOAmistad---------------------------------------------------Can you help me ?Thanks a lot and sorry for my english. Link to comment https://forums.phpfreaks.com/topic/33462-vision-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.