PHP code

 

$result=$mysql_query("select `id` from table_a");
$ar=array();
while($rows=$mysql_fetch_array($result))
{
   $ar[] = rows['id'];//把id存放到数组里
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-28
  • 2021-08-28
  • 2021-07-11
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-01-05
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案