Help Needed! Syntax Error

tom-wilson

Oct 27th, 2017 12:26 PM

<p>Hi all,</p>

<p>I am following this tutorial: https://www.youtube.com/watch?v=bjT5PJn0Mu8&t</p>

<p>I have ran into a few errors, I am changing it up a little. For example, I am using several different inputs, attached is my code and I am getting an error an unsure why. The error is " *syntax error, unexpected '$stmt' (TVARIABLE) in C:\wamp64\www\studentplanner\register.php on line 12* "</p>

<p>Here is my code: https://pastebin.com/imrED4vg

<p>I hope you guys can help me, thanks ;)</p>

tom-wilson

Oct 29th, 2017 02:18 PM

Okay... scrap everything!

I am now confused, this is the error I am getting: https://pastebin.com/Rhpft6bm

This is my register-check page: https://pastebin.com/3hUKdaKg

mark

Nov 1st, 2017 09:10 AM

You need to initiate the MySQLi connection. The variable $mysqli is not defined it seems.