Jump to content

Need To Create An All Caps Trigger


Recommended Posts

You say the data could be coming from anywhere, but surely you have a query at some point to add the data into the db?


So in your insert query do something like this:


>$query = ' INSERT INTO tbl_name (fld_name) VALUES(\''.strtoupper($the_value).'\')';


i.e. convert the string to uppercase as you insert it into the db



or is this not what you want?



if you want to write an update query it will be something like:


>UPDATE tbl_name SET fld_name = UPPER(fld_name) WHERE fld_name = 'blahblah'

Edited by OJB
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...