![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Luuk wrote: On 05-03-2011 15:10, Jerry Stuckle wrote: On 3/4/2011 7:50 PM, SM wrote: ...... When doing INSERTs and UPDATE's, I will use use a normalize() function in PHP that produces a list with no punctuation, all lower case, accents stripped, etc... I believe at the end, that it's the best solution... Thanks for all of your tips and guiding. If you're insisting on adding another column for sorting, then update it with a trigger. Don't depend on the application to do it. But that will only be possible if the function he describes above available is in mysql... And is about as silly as saying that you cant rely on a PHP or other application to do an insert or an update. Since calculating what goes in the field will be part of what goes before you insert it or update it. |

#12
| |||
| |||
|
|
On 06-03-2011 13:57, The Natural Philosopher wrote: Luuk wrote: On 05-03-2011 15:10, Jerry Stuckle wrote: On 3/4/2011 7:50 PM, SM wrote: ...... When doing INSERTs and UPDATE's, I will use use a normalize() function in PHP that produces a list with no punctuation, all lower case, accents stripped, etc... I believe at the end, that it's the best solution... Thanks for all of your tips and guiding. If you're insisting on adding another column for sorting, then update it with a trigger. Don't depend on the application to do it. But that will only be possible if the function he describes above available is in mysql... And is about as silly as saying that you cant rely on a PHP or other application to do an insert or an update. Since calculating what goes in the field will be part of what goes before you insert it or update it. hmm, my English must be bad..... ![]() the OP wanted to do an INSERT, therefore hea wanted to use PHP to calculate some value.... |
|
Jerry suggested to use a trigger to do that which, in my opinion, requires a function in MySQL to calculate that column. |
|
It can be hard to do that, depending on wat this 'function' should do. |
![]() |
| Thread Tools | |
| Display Modes | |
| |