Calibur Victorious
Calibur Victorious

Reputation: 638

phpmyadmin column using php function

Can i make a column that automatically creates its content from other column and do a function on it?

for example a function to lowercase the title in same row

function tt(row['title']){
    strtolower(row['title']);
}


[id     title     content     function tt()]
[1   Awesome PHP   Lorem       row['title']]

//becomes//

[id     title     content     function tt()]
[1   Awesome PHP   Lorem       awesome php ]

is that possible? Or do i have to make it is supposed to be while inserting the database?

Upvotes: 1

Views: 339

Answers (1)

user6763587
user6763587

Reputation:

yes you can use triggers to achieve this.

Upvotes: 1

Related Questions