PHP输出结果demo

$conn = mysql_connect($tc_server, $tc_user_name, $tc_user_pass);

mysql_select_db($tc_data_name, $conn);
				
				$sql="SELECT * FROM pre_common_admincp_cmenu";

				$res1= mysql_query($sql);
				while($row=mysql_fetch_assoc($res1))
				{
					$rowset[] = $row;
				}
				var_dump($rowset);
				return;

  

posted @ 2013-12-03 14:15  ishibin  阅读(263)  评论(0编辑  收藏  举报