

How do i...fatal error: uncaught error: call to a member function bind_param() o...
source link: https://www.codeproject.com/Questions/5318318/How-do-i-fatal-error-uncaught-error-call-to-a-memb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Hi everyone! I have an error in my system when I log in and I don't know why,
Quote:this is the error:
Fatal error: Uncaught Error: Call to a member function bind_param() on bool in C:\xampp\htdocs\clinica\logearse.php:10 Stack trace: #0 {main} thrown in C:\xampp\htdocs\clinica\logearse.php on line 10
Quote:And this is the code:
<?php //logeo include("conex.php"); session_start(); $name=$_POST['name']; $pass=$_POST['pass']; $sql=$conn->prepare('SELECT * FROM usuario WHERE name=? pass=?'); $sql->bind_param('ss',$name,$pass); "HERE IS THE ERROR" $sql-execute(); $result=$sql->get_result(); if($row=$result->fetch_assoc()){ $_SESSION['nombre']=$name; header("location:home.php"); }else{ header("register.php"); } ?>
What I have tried:
I tried some thing, but nothing and I dont why happened
Recommend
-
136
Fix the "Uncaught TypeError: destroy is not a function" Error in ReactNick Scialli • February 21, 2021 • 🚀 1 minute readThis React error seems particularly cryptic, but ends up making a...
-
6
Thinkphp5 Call to a member function render() on array发布于 今天 11:09 Call to a member function render() on arrayThinkphp5分页
-
10
yum提示“DB_RUNRECOVERY Fatal error, run database recovery”的解决方案 在yum安装过程中中断后,再次运行yum后提示 “DB_RUNRECOVERY Fatal error, run database recovery” [lujun9972@VM_0_8_centos lctt-scripts]$ sudo...
-
6
Poor JDBC - MySQL Error & ldquo; FATAL EXCEPTION in createStatment call & rdquo ;, How to solve this problem? advertisements Thi...
-
16
大佬们求助前端与智能合约交互时报错Uncaught Error: Invalid number of arguments to Solidity function是怎么回事呐 5...
-
15
error: invalid path xxx fatal: Could not reset index file to revision ‘HEAD’. 2021-08-06 今天在 windows 上拉代码,没想到遇到了这么一个错:error: invalid path xxx fatal: Could not reset index file to revision 'H...
-
9
php mysql prepared statement bind param error advertisements i have been stuck on this error. Appreciate any help on this:
-
21
How do I fatal error: uncaught mysqli_SQL_ex...
-
37
Know someone who can answer? Share a link to this Before answeringYou should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide m...
-
6
PHP升级到8.0后,报Fatal error: Uncaught Error: Call to undefined function create_function()解决方案. PHP升级到8.0后,报Fatal error: Uncaught Error: Cal...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK