My mistake I am having with the $to variable not the $from variable
although the same general query would apply...
On Oct 12, 2005, at 5:04 PM, Brandon Price wrote:
I am having some trouble with avpops and the $to
variable. I am
doing something like
avp_db_load("$to","$disabled");
which produces a query like
select value,attribute,type from usr_preferences where
username='+15183207486' AND attribute='50'
the problem is I need a query like select value,attribute,type from
usr_preferences where username='15183207486' AND
attribute='50' ,without the "+"
is there any way I can strip the 1st digit from the $to variable? I
have already tried using strip(1);
As always any help greatly appreciated.