Hallo,
ich weiß nicht, wie ich das machen soll
Die Abfrage
soll nur in dem Ergebnis der Query stattfinden. Wie mach ich das am besten??
ich weiß nicht, wie ich das machen soll
PHP-Code:
if($abteilung_fk!=0){}
else{
$sqlab = " SELECT ";
$sqlab .= " pt.description, p.sparePart, p.serial_num, ";
$sqlab .= " h.pk_asset From peripherals as p ";
$sqlab .= " LEFT JOIN peripheral_types as pt ON pt.peripheral_pk=p.peripheral_fk ";
$sqlab .= " LEFT JOIN hardware as h ON p.fk_asset=h.pk_asset ";
$sqlab .= " WHERE p.serial_num ='$ug' ";
$res = dbquery($sqlab);
$num = mysql_num_rows($res);
if ($num==0)
{ echo "Sorry, but there are no matches found in Hardware.<br>";
echo "Are you sure, that you type in the correct word!";}
if($p.pk_asset ==0)
{ echo "This is a SparePart <br>";
$num = 0;}
PHP-Code:
if($p.pk_asset ==0)
{ echo "This is a SparePart <br>";
$num = 0;}
Kommentar