mysql_fetch_lengths()
回傳值為array
$sql_desc = "SELECT user_id, user_name FROM userinfo ";
$rs_desc = mysql_query($sql_desc);
$column_len = mysql_fetch_lengths($rs_desc);
echo $column_len[0]."〈br〉";
echo $column_len[1];
------------------------------------------------------------------
4
12
回傳值為array
$sql_desc = "SELECT user_id, user_name FROM userinfo ";
$rs_desc = mysql_query($sql_desc);
$column_len = mysql_fetch_lengths($rs_desc);
echo $column_len[0]."〈br〉";
echo $column_len[1];
------------------------------------------------------------------
4
12
留言
張貼留言