|
$query="select * from user";
$result = mysql_query($query);
for($i=0;$i<mysql_num_fields($result);$i++)
{
$temp=mysql_field_name($result,$i);
$query_1="select column_comment from INFORMATION_SCHEMA.Columns where table_name='user' and table_schema='softinfo' and column_name like '$temp'";
$result_1=mysql_query($query_1);
$row_1=mysql_fetch_row($result_1);
echo "<td nowrap>".$row_1[0]."</td>\n";
}
echo "</table>\n";
晴云孤魂's Blog|就爱编程搜帖|手机版|Archiver|就爱编程论坛
GMT+8, 2025-7-1 19:06 , Processed in 0.072287 second(s), 25 queries .
Powered by Discuz! X2
© 2001-2011 Comsenz Inc.