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

iphone - Using nested NSDictionary with Picker -

javascript - Iterate over array and calculate average values of array-parts -

php - accessing mysql using different server to which db connection data is located -