Page 1 of 1

hi I need some help

Posted: Sun Aug 05, 2007 9:01 pm
by gpong
I have tables name ex:
CHT_BusinessTYP
CHT_COMINT
CHT_COMINTTYP
CHT_CUSIFO
CHT_CUSIFOTYP
CHT_DOCGRP
i want to get the last three character ex:CHT_CUSIFOTYP ===>"TYP"
what should I do?
thank you very much :P

Descriptive Subjects

Posted: Sun Aug 05, 2007 9:03 pm
by feyd
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

Are these names stored in PHP ... or somewhere else?

substr() in php.

Posted: Sun Aug 05, 2007 9:05 pm
by iknownothing

Code: Select all

substr($variable_thing, -3);

thanks

Posted: Sun Aug 05, 2007 9:13 pm
by gpong
thank you its work :D