Page 1 of 1

Another noob question.

Posted: Wed Aug 28, 2002 7:55 am
by MarKeR
Sorry again, but you guys are great for dealing with people like myself, no flames yet.

When I code php i can start it by using the format below, right?

<?php
code code
?>

When I do this I am getting various errors, T_Variable and T_String for example.

When I input the code like below I usually get things to work.

<?php code code ?>

Why?

This is an arror message i am getting, I have double checked the code(very basic) and there seems to be no problems.

Parse error: parse error, unexpected T_STRING in c:\phpdev\www\formhandler.php on line 16


Thx again :D

Posted: Wed Aug 28, 2002 9:03 am
by gotDNS
Hey, I dont know what program your using to make this, but here's what to do:

Turn word wrap off, then go to: Edit > Go To...

Then type in 16 as the line number. This'll take you to line 16, where you must proceed to look for errors in your code....has to do with a T_STRING...line 16...it shouldn't be too hard...

btw, your code is correct, but apparently whatever 'code code' represents is not.

later on, -Brian

Posted: Thu Aug 29, 2002 1:53 am
by twigletmac
Even if your code is very basic we can help better if we can actually see what it is...

Mac

Posted: Thu Aug 29, 2002 4:28 pm
by gotDNS
I think the problem will be rather simple to pinpoint as soon as we see 'code code' :P

Just pastify it, and we'll see what we can do for you....it can't be too hard, unless line 16 is most of ur page.....but no, seriously, you can pretty much figure it out urself if you want...try looking up suspicions on PHP.net

later on, -Brian