Another noob question.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MarKeR
Forum Newbie
Posts: 9
Joined: Mon Aug 26, 2002 7:48 am

Another noob question.

Post 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
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Even if your code is very basic we can help better if we can actually see what it is...

Mac
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post 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
Post Reply