Closed irut closed 11 years ago
Sorry, but what is the question?
i'm sorry, i forgot the exclamation mark :( i have edit my post and also how to prepared statements to run with idiorm? it's work only con raw_query? tnk and sorry
I still don't understand exactly what you are asking, but I will try to answer.
All queries built using Idiorm automatically use prepared statements. So yes when you execute:
$person = ORM::for_table('REGISTRY')->create();
// insert one row
$person->name = 'one';
$person->value =1;
$person->save();
You are protected by prepared statements that Idiorm builds in the background for you.
I hope that makes sense and answers your question.
you've centered my problem tnk, in the Features section https://github.com/j4mie/idiorm#features in the fourth point is written: Uses prepared statements throughout to protect against SQL injection attacks. I had understood that it was necessary to do... sorry and congratulations for the project
Because it is using prepared statements to build queries in the background for you. It makes it easier to use the prepared statements by abstracting it through a more convenient interface. That is the whole point of Idiorm.
I have a problem : From php manual the prepared statements example 2 - Repeated inserts using prepared statements:
and with idiorm?