Base64 encoded string for simple sql injection
问题 Except performance issue, is base64_encode() a "good" practice to prevent SQL injection? Of course not for all fields (columns) but just for one TEXT field (Example: in a contact form) We know that characters returned by base64_encode() function are "safe" and not need even escape (correct me if I'm wrong) but I want to know if it's "safe" in every situation (charset encoding, or something similar ). Simple practical example: $dbc = new mysqli( DBHOSTNAME, DBUSERNAME, DBPASSWORD ); $name =