So when I try to verify login username and password, would I want to attempt to connect to the database using those login information? or using the root/administrator/super-user username and password?
I heard doing the latter may result in holes in security but I'm not sure how else to verify the login information unless mysqli_connect provides an error code when the database connection cannot be established due to invalid username/password fields...