我想建立一个连接并将 sql server 连接到 php 但它给出了这个错误
浏览器。我想在本地主机上构建。
请帮助。
如果问题没有意义,请不要投票。
<?php
$conn = oci_connect("system","password","localhost/xe");
$username = $_POST["username"];
$password = $_POST["password"];
$sql = oci_parse($conn,"Select * from login where username = '$username' and password =
'$password'");
oci_execute($sql);
$nrows = oci_fetch_all($sql , $res);
if($nrows > 0)
{
echo "Login Successfull";
}
else
{
echo "Username and password is incorrect";
}
?>