Asked 3 years ago
26 Jul 2021
Views 478
Fleta

Fleta posted

why does mysqli_escape_string require a database connection

why does mysqli_escape_string require a database connection
jabber

jabber
answered Jul 28 '21 00:00

mysqli_escape_string requires a database connection because it uses a connection handler and escapes the string according to the current character set. so basically it escapes string according to the connection handler's character set.
Post Answer