Hey, i have this error in my website : Parse error : syntax error, unexpected ‘->’ (T_OBJECT_OPERATOR) in /storage/ssd2/693/11368693/public_html/nouveau-espace-membre/controllers/authController.php on line 49.

And my code is (not all my code ) :

$emailQuerry = “SELECT * FROM users WHERE email=? LIMIT 1”;
$stmt = $conn->prepare($emailQuerry);
stmt->bind_param(‘s’, $email);
$result = $stmt->get_result();
$userCount = $result->num_rows;

can you help me ?

Which is line 49 sorry?

What do you means ? I’m french, i don’t understand ^^

Which is line 49 on your code?

It’s stmt->bind_param(‘s’, $email);

Wait, i think i know

I add $ before the the Stmt, don’t work

If you are a beginner checkout http://bitdegree.org or
https://stackoverflow.com/questions/ask to troubleshoot your code with other developers/coders etc. Best checking the documentation for your script and communicating with the script author or troubleshooting it locally or alternative hosting to make sure it isn’t a limitation of the free plan.
Our team would be more than happy to help you with any problem you encounter. However, we will only provide free support for our system and services. We will help you with basic problems associated with getting scripts running such as advising you of the correct hostname, username, database name and information to us, but if you need help with third-party software, contact the authors of that software or query Google with error message you get.