include "inc/config.php";?> if($_GET['typeid']) { $typeid=$_GET['typeid']; $result=mysqli_query($db,"select * from productstype where typeid='$typeid'"); $date=mysqli_fetch_array($result); }else{ $result=mysqli_query($db,"select * from productstype where ctid='133' and fid='0' order by sortid asc"); $date=mysqli_fetch_array($result); } $typeid=$date['typeid']; $name=$date['name']; $note=$date['note']; ?>