Skip to content
Advertisement

localhost redirected you too many times ERR_TOO_MANY_REDIRECTS

Hello stack overflow community, I’m a student and start to explore the world of php. I have experienced this kind of error and I have no idea what’s going on if my code have an error or haven’t

localhost redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS

Here’s my code 🙁 THANK YOU IN ADVANCE GUYS ^_^


JavaScript

Advertisement

Answer

When you start your page even when it do not delete anything you always call

JavaScript

So the site has no chance to start. Do the call only when deleting, like you intended

JavaScript

Still your code is vulnurable to sql injection a and should urgently switch to prepared statements with parameters see How can I prevent SQL injection in PHP?

So use better

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement