Using bind parameters to secure query.

Using bind parameters to secure query.

davykiashdavykiash Posts: 35Questions: 13Answers: 1

Hello

I have been using direct value approach in my where clause in the query on the server which is not secure at all.

->where( 'my_field', $my_value, '=' )   

How can I use the parameter approach , something almost similar to almost this?

->where( 'my_field', ':my_value', '=' );    
->bind( 'my_value',$value); 

This question has accepted answers - jump to:

Answers

This discussion has been closed.