PHP遍历记录集的值

mysql_select_db($database_mysqlConnect,   $mysqlConnect);  
  $query_RecSStype   =   “SELECT   typeid,   typename   FROM   sstypeinf”;  
  $RecSStype   =   mysql_query($query_RecSStype,   $mysqlConnect)   or   die(mysql_error());  
  $row_RecSStype   =   mysql_fetch_assoc($RecSStype);  
  $totalRows_RecSStype   =   mysql_num_rows($RecSStype);  
  do   {      
      $rec_SStype[$row_RecSStype[‘typeid’]]   =   $row_RecSStype[‘typename’];  
      }  
  while   ($row_RecSStype   =   mysql_fetch_assoc($RecSStype));

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注