Hello,

I have progressed on my stupid mistake..
I found a solution but also searching the way to give a value to a
field without the quote..indeed for loading a blob mysql as a function
"LOAD_FILE", very convenient ..The problem is if I set the value of the
field such as :

$this->params['data']['model']['field'] = 'LOAD_FILE(\'localfile\')';

Mysql will not load the file since I have passed a string. I have
manage to write a complete string and call the execute and this works,
but I would prefer to save everything in one call.
Actually I use save the first time and get the last insert id, then I
update the blob using execute ..

Is there anyway to pass "DB function" as values for a field ?

Thanks
Franck


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to