根据id查询出名字 php 根据id查询出名字 php程序应该怎么写啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <?php mysql_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); mysql_select_db("mydb"); $result = mysql_query("SELECT name FROM mytable where id='id'"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf (" Name: %s", $row[0]); } mysql_free_result($result);?> appache能在vista运行吗? 上传下载附件 我是新手----关于php 求一个正则表达式,过滤Discuz的ubb代码 房产的交易实时数据如何获得? 关闭IE7选项卡?? 大家有遇到过这样的问题没apache 运行 调试php 之后过一会就会有一个arp.exe 起来system32下的 结果服务就不行了。 ecshop 订单查询问题 shopnc支不支持一键上传到淘宝 thinkphp5.0版本如何强制设置content-type CURL 模拟FTP上传文件 PHP->PHP
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
mysql_select_db("mydb"); $result = mysql_query("SELECT name FROM mytable where id='id'"); while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
printf (" Name: %s", $row[0]);
} mysql_free_result($result);
?>