Hallo,
ich habe folgende Abfrage:
	
Jetzt würde ich gerne in meiner Ausgabeliste auf den MIN-preis zugreifen aber finde den
Syntax in keiner MySQL Beschreibung. geht das überhaupt und kann mir einer sagen,
wo ich die Information finde?
ich hatte mal ganz frech probiert:
	
Danke
							
						
					ich habe folgende Abfrage:
PHP Code:
	
	
    $abfrage = "SELECT flightprice.tarif,
flightprice.sellprice,
flightprice.bookclass,
MIN(flightprice.sellprice),
airlines.name, airlines.code FROM $tabelle, $tabelle1
                    where flightprice.depart like '%$fdeparture%' 
                    and flightprice.destination like '%$fdestination%'
                    and flightprice.datefrom <= '$departdate' 
                    and flightprice.dateto >= '$departdate' 
                    and flightprice.www = 'T' 
                    and flightprice.airlinecode = airlines.code
                    group by flightprice.airlinecode
                    order by sellprice";
 
     $result = mysql_query($abfrage); 
Syntax in keiner MySQL Beschreibung. geht das überhaupt und kann mir einer sagen,
wo ich die Information finde?
ich hatte mal ganz frech probiert:
PHP Code:
	
	
    for ($i=0; $i<$num; $i++)
      {
        $airlinename = mysql_result($result, $i, "airlines.name");
        $sellprice = mysql_result($result, $i, "MIN(flightprice.sellprice)");
         $airlinecode = mysql_result($result, $i, "airlines.code");
        $bookclass = mysql_result($result, $i, "flightprice.bookclass");
       ....
} 
 
          


 ) zu verwenden ....
  ) zu verwenden .... 
							
						
Comment