Comment on Please create a non-secure password.

<- View Parent
Aganim@lemmy.world ⁨4⁩ ⁨weeks⁩ ago

but mysqli_real_escape_string() or any number of other similar solutions are indeed a thing that exists. A prepared statement would work, too.

You make it sound as if a prepared statement is a last resort. I would turn that around: as a rule always use prepared statements when dealing with user input. It’s very easy to forget a single call to mysqli_real_escape_string().

source
Sort:hotnewtop