有一句条件不会写。
$username=trim($_POST['username']);
$password=trim(&_POST['pass']);
//declare the SQL statement that will query the database
$query = "select top 6 * from WEB_VIEW where DNBH='$username' order by SFMonth desc ";
//execute the SQL query and return records
$result = mssql_query($query) or die ("查询数据失败: ".mysql_error());
$numRows = mssql_num_rows($result);
$nRow=mssql_fetch_array($result);
if (empty($numRows)&&$password substr(row[3], -4) ) {echo "
一款基于PHP+MYSQL开发的企业网站管理软件,具有灵活的栏目内容管理功能和丰富的网站模版,可用于创建各种企业网站。v5.1版本支持了PHP5+MYSQL5环境,前台网站插件开放源码,更利于个性化的网站开发。具有以下功能特点和优越性:[>]模版精美实用具有百款适合企业网站的精美模版,并在不断增加中[>]多语言支持独立语言包,支持GBK,UTF8编码方式,可用于创建各种语言的网站[&g
1
substr(row[3], -4)
应写为
substr($nRow[3], -4)
$numRows = mssql_num_rows($result);
$nRow=mssql_fetch_array($result);
if (empty($numRows) || $password substr(nRow[3],-4)) {echo "
你怎么总是要漏掉“$”
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号