Jump to content

I'm following this video 

And on 59:00 he makes a code to know if a username is already taken, i do the same as he explains in the video but i get an error on the line 30 which is this

 $result = msqli_query($conn, $sql); 

 

Every variable is the same on the database and on the files.

 

CPU: Ryzen 5 5600x | MB: Asus TUF Gaming B550-Plus | RAM: Crucial Ballistix RGB 16Gb 3200Mhz | GPU: Gigabyte GTX 1080 Windforce | Cooler: Scythe Fuma 2 | PSU: EVGA SuperNOVA 650 G2 | SSD: Crucial MX300 275Gb | HDD: WD Black 2Tb | Monitor: LG 27GL83A

Link to comment
https://linustechtips.com/topic/843353-i-have-a-problem-with-a-login/
Share on other sites

Link to post
Share on other sites

If it's using procedural syntax it's not even worth watching in my opinion.

Take the knowledge from that video and replace all the queries with OOP mysqli prepared statements or PDO Prepared statements,

makes everything a lot easier and less cluttered.

 

But to answer your question, your SQL probably has a syntax error.

Does your page display an error & what is it? If not have you tried var dumping?

 

Did you fat finger something and your eyes just keep skipping over it?

i want to die

Link to post
Share on other sites

Procedural syntax isn't bad. Its great to start learning and building basic knowledge of your first language.

 

Can I ask when your deadline.

 

Anyways we need some more code to see what is happening.

 

And what does the error say

Quote or mention me if not feel ignored 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×