Hello,
When I pull a record from the database, it is a word, (varchar) and I echo it to the page.
Sometimes the word is like this - 'hello' and sometimes like this 'hello3' or 'hel3lo'.
Is there a way to say if any record contains 3 wherever it is in the word, just to print the word without the 3 so it always says 'hello'?
Cheers
James
When I pull a record from the database, it is a word, (varchar) and I echo it to the page.
Sometimes the word is like this - 'hello' and sometimes like this 'hello3' or 'hel3lo'.
Is there a way to say if any record contains 3 wherever it is in the word, just to print the word without the 3 so it always says 'hello'?
Cheers
James