Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/270.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 仅在IE浏览器上查询失败_Php_Sql Server_Apache_Request - Fatal编程技术网

Php 仅在IE浏览器上查询失败

Php 仅在IE浏览器上查询失败,php,sql-server,apache,request,Php,Sql Server,Apache,Request,我的目标是将一个PHP应用程序从WindowsServer2000-SQLServer2005-Apache2.2移动到一个带有WindowsServer2012-SQLServer2012-Apache2.2的新服务器 在新服务器上,我安装并配置了SQLServer2012-Apache2.2和PHP5.2.9 我在新服务器上复制了应用程序和数据库 不幸的是,该应用程序无法与Internet Explorer配合使用。我无法访问我的应用程序帐户,因为它在登录表单上失败。它与Firefox和Ch

我的目标是将一个PHP应用程序从WindowsServer2000-SQLServer2005-Apache2.2移动到一个带有WindowsServer2012-SQLServer2012-Apache2.2的新服务器

在新服务器上,我安装并配置了SQLServer2012-Apache2.2和PHP5.2.9

我在新服务器上复制了应用程序和数据库

不幸的是,该应用程序无法与Internet Explorer配合使用。我无法访问我的应用程序帐户,因为它在登录表单上失败。它与Firefox和Chrome配合使用

我可以在Apache日志中看到:PHP警告:mssql_query()[function.mssql query]:消息:靠近“=”的语法不正确。(严重程度15)

我使用ODBC库在PHP5.4和Apache2.4下尝试了该应用程序,以处理请求。我在Internet Explorer中再次遇到相同的错误

在旧服务器上,应用程序可以与IE7-8-9-10配合使用

有人能帮我吗


关于

我没有使用JQuery,登录表单中的数据被传递到另一个页面的$\u POST。 日志失败了,它不认识我

这是表格

<fieldset class="fld_type" style="width:80%;">
<legend class="lgd_style">Connexion - Inscription</legend>
<table align="center">
<?php if(!empty($erreur)){ ?>
<tr>
<td align="right" colspan="3" style="color:red; font-size:14px;" ><?php echo $erreur; ?></td>
</tr>
<?php } ?> 
<tr><td>&nbsp;</td></tr>
<tr>
<td rowspan="4"><img style="height:90px;" src="images/connect.png" alt="Authentification" /></td>
<td class="right"><b>N&ordm; Pan&eacute;liste (identifiant):</b></td>
<td><input style="border:1px solid #0075bc;" onFocus="modif_champs(this);" onBlur="default_champs(this);" type="text" id="txt_login" name="txt_login" /></td>
</tr>
<tr>
<td class="right"><b>Mot de passe :</b></td>
<td><input style="border:1px solid #0075bc;" onFocus="modif_champs(this);" onBlur="default_champs(this);" type="password" id="txt_mdp" name="txt_mdp" /></td>
</tr>
<tr>
<td></td>
<td><a class="strong" href="#MDPOublie" onClick="$('formMDPOublie').appear();Effect.ScrollTo('MDPOublie'); return false;" >Mot de passe oublié ?</a></td>
</tr>
<tr>
<td></td>
<td>
<!--<input onClick="verifLoginMDP(this.form);" type="button" value="Se connecter" id="btn_valider" name="btn_valider" class="btn_style" />-->
<input type="submit" value="Se connecter" id="btn_valider" name="btn_valider" class="btn_style" />
</td>
</tr>
<tr><td colspan="3"><hr style="color:white;" /></td></tr>
</table>
<table align="center">
<tr>
<td align="right"><a href="questionnaire_consommation/form_inscriptionPaneliste.php"><img style="height:40px; width:40px; " src="images/addP2.png" alt="Nouveau ?" /></a></td>
<td><a class="strong" href="questionnaire_consommation/form_inscriptionPaneliste.php">Vous n'&ecirc;tes pas encore inscrit ?</a></td>
</tr>
</table>
</fieldset>
下面是执行查询的php代码
// Execution d'une requête SQL
function ExecRequete($requete, $connexion){

    $resultat = mssql_query($requete, $connexion);

    if($resultat){
        return $resultat;
    }
    else{
        echo "<b>Erreur dans l'execution de la requete '$requete' .</b>";
        exit;
    }
} // Fin de la fonction ExecRequete

//Recherche de l'objet suivant
function ObjetSuivant($resultat){
    return mssql_fetch_array($resultat);
}

//Recherche de la ligne suivante (retourne un tableau)
function LigneSuivante($resultat){
    return mssql_fetch_assoc($resultat);
}

// Correction de l'erreur #187 : Erreur SQL lors de la mise à jour des fréquences de consommation.
// Nombre d'enregistrements trouvés
function Nombre($resultat){
    return mssql_num_rows($resultat);
}

?>
//执行需要的SQL
函数ExecRequete($requete,$connexion){
$resultat=mssql_查询($requete,$connexion);
如果($resultat){
返回$resultat;
}
否则{
回音“执行重新请款的错误,$requete.”;
出口
}
}//基金会执行董事
//瑞士航空公司
函数ObjetSuivant($resultat){
返回mssql_fetch_数组($resultat);
}
//苏万特森林公园(重新规划)
函数LigneSuivante($resultat){
返回mssql_fetch_assoc($resultat);
}
//纠正错误187:纠正联合行动的顺序。
//注册名称:trouvés
函数名($resultat){
返回mssql_num_行($resultat);
}
?>

它在第行($code>$resultat=mssql_查询($requete,$connexion)上失败

PHP在服务器端运行-它不关心您使用的浏览器。问题在于如何调用它,但考虑到没有给出代码,很难说;我猜您正在使用JQuery进行登录,并且IE中不支持某些功能。当您尝试登录时,浏览器中会发生什么?是否抛出错误?还是登录失败了?还是你悄悄地退出了?
// Execution d'une requête SQL
function ExecRequete($requete, $connexion){

    $resultat = mssql_query($requete, $connexion);

    if($resultat){
        return $resultat;
    }
    else{
        echo "<b>Erreur dans l'execution de la requete '$requete' .</b>";
        exit;
    }
} // Fin de la fonction ExecRequete

//Recherche de l'objet suivant
function ObjetSuivant($resultat){
    return mssql_fetch_array($resultat);
}

//Recherche de la ligne suivante (retourne un tableau)
function LigneSuivante($resultat){
    return mssql_fetch_assoc($resultat);
}

// Correction de l'erreur #187 : Erreur SQL lors de la mise à jour des fréquences de consommation.
// Nombre d'enregistrements trouvés
function Nombre($resultat){
    return mssql_num_rows($resultat);
}

?>