Search found 6 matches

by donnyziner
Wed Aug 17, 2005 2:10 pm
Forum: PHP - Code
Topic: code with unexpected $ parse error
Replies: 8
Views: 652

Also - when I comment out the { on line 11, I get this error:

Parse error: parse error, unexpected T_STRING in /home/virtual/site132/fst/var/www/html/validateloginsys.php on line 12

When I comment out each following line the same error just moves down the script

Any help is appreciated - thanks. :?
by donnyziner
Wed Aug 17, 2005 2:08 pm
Forum: PHP - Code
Topic: code with unexpected $ parse error
Replies: 8
Views: 652

Thanks for your time on this. I tried the change. With the added } I now get this error: Parse error: parse error, unexpected '{' in /home/virtual/site132/fst/var/www/html/validateloginsys.php on line 11 using this code: <?php $connection = mysql_pconnect("localhost",$login,$password); mys...
by donnyziner
Tue Aug 16, 2005 9:27 pm
Forum: PHP - Code
Topic: code with unexpected $ parse error
Replies: 8
Views: 652

Hmm, not too sure what it could be, it looks fairly clean -- you might want to check your '}'s though. If that's the entire script, you're missing a closing brace, but I suspect you just posted a part of the script, so it should be alright. That is the whole script, actually... Where would the clos...
by donnyziner
Tue Aug 16, 2005 8:37 pm
Forum: PHP - Code
Topic: code with unexpected $ parse error
Replies: 8
Views: 652

If its the last line, you might want to try changing the $mysql_pconnect to $connection, since that's the name of the variable you used at line 2; and as mysql_pconnect is a function name it might be getting confused.
Nope. I changed it & still get the same error.

DZ
by donnyziner
Tue Aug 16, 2005 8:32 pm
Forum: PHP - Code
Topic: code with unexpected $ parse error
Replies: 8
Views: 652

nielsene wrote:What line is line 19?
It is, yes.
If its the last line, you might want to try changing the $mysql_pconnect to $connection, since that's the name of the variable you used at line 2; and as mysql_pconnect is a function name it might be getting confused.
I'll give that a try, thanks.

DZ
by donnyziner
Tue Aug 16, 2005 8:28 pm
Forum: PHP - Code
Topic: code with unexpected $ parse error
Replies: 8
Views: 652

code with unexpected $ parse error

Can some kind soul tell me what I'm doing wrong with this code? It's throwing a "Parse error: parse error, unexpected $ in /home/virtual/site132/fst/var/www/html/validateloginsys.php on line 19" message. The db name, $login & $password have been left out for posting here). It's a valid...