Scusa... ho provato quello che mi hai scritto, ma non funziona, o meglio funziona ma aggiungi al carrello non risulta un collegamento...
Ti mando il codice dell'intera pagina ok?
Grazie mille

Codice PHP:
<?php 
header
('Content-Type: text/xml');

$db_host "localhost"
$db_user "administrator"
$db_password "administrator"
$db_database "ticket"

$con mysql_connect($db_host,$db_user,$db_password); 
mysql_select_db($db_database$con); 


$q=$_POST['q']; 

$sql="SELECT * 
FROM tab
WHERE fila = '"
.$q."' "

$result mysql_query($sql); 

$xml = new DomDocument('1.0'); 
    
$info $xml->createElement('informations'); 
    
$info $xml->appendChild($info); 

   
while (
$row mysql_fetch_array($result))
    {
        
        
$user $xml-> createElement('user');
        
$user $info->appendChild($user);
        
        
$fila $xml->createElement('fila');
        
$fila $user->appendChild($fila);
        
$value $xml->createTextNode($row['fila']);
        
$value $fila->appendChild($value);
        
        
$posto $xml->createElement('posto');
        
$posto $user->appendChild($posto);
        
$value $xml->createTextNode($row['posto']);
        
$value $posto->appendChild($value);    
        
    
$a $xml->createElement('a','Aggiungi al carrello');
    
$a $user->appendChild($a);
    
$value $a->setAttribute('href''mio_url.php'); 
    
$value $a->appendChild($value);
            
       
    }
         
$output $xml->saveXML();

echo 
$output;

?>