<?
include('clu_connect.php');
include('fenyelei2.php');
//$sql = "select from configuration"; mysql_connect ($mysql_host, $mysql_user, $mysql_pass) or die(mysql_error());
//你有没有数据库连接 ?
mysql_select_db ($mysql_database) or die(mysql_error()); if !($offset) $offset = 0;
if !($pageline) $pageline = 15;
$classtest= new TViewPage('user',$pagelin,$offset);
$recordSet= $classtest->getRecords();
$classtest->showFullFunc();
$k=count($recordSet); for($i=0;$i<$k;$i++)
{
echo $recordSet["Field_Name"];// [""]里添字段名
}
?>
include('clu_connect.php');
include('fenyelei2.php');
//$sql = "select from configuration"; mysql_connect ($mysql_host, $mysql_user, $mysql_pass) or die(mysql_error());
//你有没有数据库连接 ?
mysql_select_db ($mysql_database) or die(mysql_error()); if !($offset) $offset = 0;
if !($pageline) $pageline = 15;
$classtest= new TViewPage('user',$pagelin,$offset);
$recordSet= $classtest->getRecords();
$classtest->showFullFunc();
$k=count($recordSet); for($i=0;$i<$k;$i++)
{
echo $recordSet["Field_Name"];// [""]里添字段名
}
?>
{
echo $recordSet[$i]["Field_Name"];// [ " " ]里添字段名
}
for($i=0;$i<$k;$i++)
{ echo $recordSet[$i]["Field_Name1"]; // [ " " ]里添字段名
echo $recordSet[$i]["Field_Name2"];
echo $recordSet[$i]["Field_Name3"];
// ... ...
}