Can u guys help me with a code that eliminates white spaces form the front as well as the back when inserting into my sql back of characters
For Eg: lets say that the word " hello ". Now i want to remove all these space when i enter my data in MySQL so when it gets inserted there are no more spaces either in the front or back of the word.
You can use
trim():This function returns a string with whitespace stripped from the beginning and end of str.