Welcome Guest, Not a member yet? Register   Sign In
Not validated input and query builder class
#7

(07-30-2023, 01:39 AM)kenjis Wrote:
(07-29-2023, 12:59 AM)kenjis Wrote: However, usually those values are hard-coded, and users cannot modify them.

I wrote above. However, this may not be correct.

I imagined SELECT query like:

PHP Code:
$builder->where('name'$name); 

but if a dev writes code like the following:

PHP Code:
$builder->insert($_POST); 

the column names are not hard-coded.

I see what you mean by column names not being hard-coded. I never thought it could be like this without being hard-coded.

Thanks for dispelling the doubts that clouded my mind.
Reply


Messages In This Thread
RE: Not validated input and query builder class - by ONice - 07-30-2023, 10:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB