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.