Substr Error



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

.



Relevant Pages

  • Re: Substr Error
    ... > I've be messing with this for some time now, I'm trying to read a field ... For some reason my line that contains the susbtr ... > everytime no matter what. ... I get a Parse error: ...
    (php.general)
  • Re: Question about "define" and "malloc"
    ... int main{ ... I think the error is you define the point "temp" after some code you ... Maybe it's the reason of "parse error" ...
    (comp.lang.c)
  • Setting counter in variable name within foreach loop
    ... I've been messing with this for about an hour now, ... searching on google for about half hour. ... Parse error: ...
    (php.general)
  • Add/ Remove fails to work PLEASE HELP! Emergency
    ... >>That would kinda be my last resort, lol at the mo i ... >really want to know what this parse error is and why its ... >messing up my computer. ...
    (microsoft.public.windowsxp.perform_maintain)