Search found 4 matches

by jeremyhowell
Sun Aug 02, 2009 9:09 pm
Forum: PHP - Code
Topic: unexpected T_VARIABLE error
Replies: 6
Views: 204

Re: unexpected T_VARIABLE error

Thanks mate, I got that part working, and it displays the text "Congratulations" etc, but under it is all this: Warning: fopen(auction.html) [function.fopen]: failed to open stream: Permission denied in /home/fencingw/public_html/create.php on line 16 Warning: fwrite(): supplied argument i...
by jeremyhowell
Sun Aug 02, 2009 8:42 pm
Forum: PHP - Code
Topic: unexpected T_VARIABLE error
Replies: 6
Views: 204

Re: unexpected T_VARIABLE error

This is the error I get:

Parse error: syntax error, unexpected T_VARIABLE in /home/fencingw/public_html/create.php on line 13

Couldn't figure out which one is line 13, does the count start at the top of the page, or from the <?php tag?

~ Jeremy
by jeremyhowell
Sun Aug 02, 2009 8:40 pm
Forum: PHP - Code
Topic: unexpected T_VARIABLE error
Replies: 6
Views: 204

Re: unexpected T_VARIABLE error

The only other code is this:   <html> <body>   <form action="create.php" method="post"> Title: <input type="text" name="title" /> Price: <input type="text" name="price" /> Description: <input type="textarea" name="descrip&quo...
by jeremyhowell
Sun Aug 02, 2009 8:05 pm
Forum: PHP - Code
Topic: unexpected T_VARIABLE error
Replies: 6
Views: 204

unexpected T_VARIABLE error

I am having a problem with this code, I have just started using PHP yesterday, and I am getting this error when this code is executed (it is run from another page that has the three fields, title, price, and descrip. Everything works fine 'cept the part that writes to a file): <html> <head> <title>Y...