<form action="selectdistinct.php" method="get">
<?php
require "db.inc";
require "selectdistinct.php"
if ( ! ($connection = @ mysql_connect($localhost,$username,$password)))
showerror();
if (!mysql_select_db($databaseName,$connection))
showerror();
print "\nRegion:";selectDistinct($connection,"region","region_name","regionName","all");
?>
</form>
提示我5行有错,我不知道错在那里,找了半天了。请高人相助。
<?php
require "db.inc";
require "selectdistinct.php"
if ( ! ($connection = @ mysql_connect($localhost,$username,$password)))
showerror();
if (!mysql_select_db($databaseName,$connection))
showerror();
print "\nRegion:";selectDistinct($connection,"region","region_name","regionName","all");
?>
</form>
提示我5行有错,我不知道错在那里,找了半天了。请高人相助。
解决方案 »
- 请问这套开源系统叫什么名,在那里可以下载!
- 怎么把1920*500的图片居中不变型对直
- asp用自带的RSA方法加密的密文能不能用PHP自带的RSA解密出来
- 根据地区IP 采集百度搜索结果数据,如何模拟IP抓取数据?
- dedecms求自定义搜索支持联动类型
- sphinx配置文件 sql_query从mysql读数据,建索引一直是 total 0 reads,total 0 writes
- 网站后台管理连接数库失败
- laravel 项目图书管理系统
- phpexcel 导出异常的慢
- github提交代码问题
- usb serial controller!!!
- 安装wordpress3.0 建多个站点的时候,访问不了子站点,更新网络出现如下提示~
改写成:
if ( !$connection = @ mysql_connect($localhost,$username,$password))
少了分号....
require "selectdistinct.php";
就OK了.
还有报啥错??