Re: Substr Error
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 19 Jan 2006 10:26:42 -0800
bdog4@xxxxxxxxxxx wrote:
> 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
I ran the code through php with the -l flag (syntax check) and he
didn't complain about anything. Even after I uncommented that line he
was still happy.
.
- Follow-Ups:
- Re: Substr Error
- From: bdog4
- Re: Substr Error
- References:
- Substr Error
- From: bdog4
- Substr Error
- Prev by Date: Substr Error
- Next by Date: Warning: imap_open(): Couldn't open stream error
- Previous by thread: Substr Error
- Next by thread: Re: Substr Error
- Index(es):
Relevant Pages
|