|
<? require("connect.php"); if ($connect and $fidtype) { $sql="select * from entstd,enttype "; $sql=$sql."where entstd.idtype=enttype.idtype and entstd.idtype=$fidtype "; $sql=$sql."order by entstd.idstd asc"; $result = mysql_db_query($db,$sql); $cnt= mysql_num_rows($result); if ($cnt > 0) { while ($object = mysql_fetch_object($result)) { echo $object->idstd." ".$object->ename." ".$object->descp."<br>"; } } else { echo "Not found in entstd or enttype"; } } else { echo "error"; } ?> |