首页 新闻 会员 周边

php链接代码问题 求解

0
[待解决问题]

具体案例如下:

连接MY代码<?php $connec=_connect("localhost","root","root") or die("不能连接库: ".mysql_error()); mysql_select_db("liuyanben",$connec) or die ("不能选择数据库: ".mysql_error()); mysql_query("set names 'gbk'"); ?>

能不能直接写成链接网址,如下:

<?php $connec=_connect("localhost","root","root") or die("不能连接库: ".mysql_error()); mysql_select_db("liuyanben",$connec) or die ("不能选择数据库: ".mysql_error()); mysql_query("http://www.shuomy.com/list-1567-1-1.html 'gbk'"); ?>

,写成数据库链接地址会不会出问题呢?

淘步行街的主页 淘步行街 | 初学一级 | 园豆:192
提问于:2014-01-13 13:27
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册