View Single Post
Old 10-09-2021, 02:26 AM  
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,166
Quote:
Originally Posted by k0nr4d View Post
You are redirecting to index.php and exit()'ing in the event of success, so you never get to that code nor the mysqli_close.

It's also better to not using a closing ?> *at the end of the file*. If you press enter or a space after ?> for instance in your config.php file which you are including at the top, your header() line might fail because a space or linebreak has already been sent to the output buffer.
Ah, okay, that makes sense.

So should I just get rid of those then or do something with the redirection?

This is behind a .htaccess protected directory so I'm not all that concerned about closing out the connection at this moment in time if I don't need to in order to get this working lol
Publisher Bucks is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote