Substr Error
- From: bdog4@xxxxxxxxxxx
- Date: 19 Jan 2006 09:43:55 -0800
I've be messing with this for some time now, I'm trying to read a field
in my DB and if it is over a certain length I want to split it up into
two sections. For some reason my line that contains the susbtr
function is causing me headaches. For my example it shoudn't even be
in it but for some reason it is throwing an error on that line
everytime no matter what. I get a Parse error: parse error, unexpected
T_VARIABLE on the line $directions = substr($directions, 0, $canfit);"
no matter what. I don't even think it is in that if statement but it
still throws an error? Here is the code for the page. Thanks
http://204.13.168.100/~housscom/houserecipes.com/PrintCode.php
.
- Follow-Ups:
- Re: Substr Error
- From: ZeldorBlat
- Re: Substr Error
- Prev by Date: Re: unexpected T_VARIABLE
- Next by Date: Re: Substr Error
- Previous by thread: unexpected T_VARIABLE
- Next by thread: Re: Substr Error
- Index(es):
Relevant Pages
|