mysql - how do I trim an email input address so only the data before the @ is inputted into the database? -


i using coldfusion 9 add data mysql database form.

i create username email address inputed form.

for example,

<cfset store_user_email = emailaddress> <cfset store_username = trim emailaddress before @> 

i'm not sure how trim down email address?

any appreciated.

<cfset store_username = trim(listfirst(emailaddress,"@"))> 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -