$connect = @mysql_connect($ip:$port,$username,$password);
$select = @mysql_select_db($database,$connect);
$result = @mysql_query("select from user where id=101");
把$result 打印出来就是你要结果
其实调用php程序后,文件名就不能为html格式了,将文件名改为php文件名,
<html>
<php
写入代码
>
</html>
以上就是关于html通过调用数据库全部的内容,包括:html通过调用数据库、、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)