数据库修改出错
Warning:mysql_result():suppliedargumentisnotavalidMySQLresultresourceinD:\wwwroot\f76...
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in D:\wwwroot\f76500\wwwroot\Conjunction.php on line 144
数据库修改出错
//登陆验证,前台使用
$admin_info2 = '';
if ($_SESSION['username']) {
if($_SESSION['username']){
$admin_info2 = 1;
}
}
//连接数据库
if ( function_exists( "date_default_timezone_set" ) )
{
date_default_timezone_set( "Asia/Shanghai" );
}
$conn = mysql_pconnect( "174.139.31.66", "sq_f7650", "102030" );
//mysql_pconnect
//mysql_connect
mysql_select_db( "dahongyibo" );
mysql_query( "SET NAMES 'GBK'" );
//获取系统目录
function getdirname($path){
if(strpos($path,'\\')!==false){
return substr($path,0,strrpos($path,'\\'));
}elseif(strpos($path,'/')!==false){
return substr($path,0,strrpos($path,'/'));
}else{
return '/';
} 展开
数据库修改出错
//登陆验证,前台使用
$admin_info2 = '';
if ($_SESSION['username']) {
if($_SESSION['username']){
$admin_info2 = 1;
}
}
//连接数据库
if ( function_exists( "date_default_timezone_set" ) )
{
date_default_timezone_set( "Asia/Shanghai" );
}
$conn = mysql_pconnect( "174.139.31.66", "sq_f7650", "102030" );
//mysql_pconnect
//mysql_connect
mysql_select_db( "dahongyibo" );
mysql_query( "SET NAMES 'GBK'" );
//获取系统目录
function getdirname($path){
if(strpos($path,'\\')!==false){
return substr($path,0,strrpos($path,'\\'));
}elseif(strpos($path,'/')!==false){
return substr($path,0,strrpos($path,'/'));
}else{
return '/';
} 展开
2个回答
展开全部
你的conjunction.php代码放出来看看
追问
//连接数据库
if ( function_exists( "date_default_timezone_set" ) )
{
date_default_timezone_set( "Asia/Shanghai" );
}$conn = mysql_pconnect( "174.139.31.66", "sq_f7650", "102030" );
//mysql_pconnect
//mysql_connect
mysql_select_db( "dahongyibo" );
mysql_query( "SET NAMES 'GBK'" );
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询