mysql+MySQL Administrator+php+phpinstaller+iis
解决方案 »
- Fatal error: Out of memory (allocated 262144) (tried to allocate 10267220 bytes)
- 急求高手帮忙!!!
- 帮忙推荐一套php的运行环境的下载地址,要中文版的!急!
- 打开php文件时显示“文件下载”对话框
- php,从数据库检索数据,生成文本文件,并下载的问题。
- 新手求助
- 用smarty怎么做定制标签的功能?
- 如何设置才能让php执行时严格变量大小写
- 帮我分析一下这个文件是不是被加密过了..
- PHP 程序员的个人PHP培训技术成长规划
- 請個位幫忙: 1 PHP&EXCEL; 2 PHP&APACHE
- 高手快来帮忙啊,急急急急急急急急急急急急急急急急急
$host = "localhost";
$user = "root"; //连接用户名
$password = "password"; //用户密码
$database = "database"; //数据库名称$conn = mysql_connect($host,$user,$password);
mysql_select_db($database,$conn);$query = "Select * from mytable";
$result = mysql_query($query,$conn);
$row = mysql_fetch_assoc($result);echo $row['NAME'];
echo $row['SEX'];
echo $row['birth'];
echo $row['birthaddr'];
?>
前面同fzjw(清风)
echo"<table>";
while($row=mysql_fetch_array($result))
{
echo"<tr height=12><td width=80>".$row[0]."</td>".
"<td width=80>".$row[1]."</td>".
"<td width=80>".$row[2]."</td>".
"<td width=80>".$row[3]."</td></tr>";
}
echo"</table>";