Jump to content

Vision problem


XanderX

Recommended Posts

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 -- > Viaggio1
AUSTRIA --> Danubio -- > Viaggio2
AUSTRIA --> Vienna -- >
BELGIO --> Amistad -->
---------------------------------------------------

Can I show my results in this form ?

---------------------------------------------------
AUSTRIA
Danubio --> Viaggio 1
Danubio --> Viaggio 2
Vienna

BELGIO
Amistad
---------------------------------------------------

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.