FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » Parse error in line 206
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Parse error in line 206 [message #20751] Wed, 27 October 2004 19:09 Go to next message
Soto123 is currently offline  Soto123   United States
Messages: 3
Registered: October 2004
Karma: 0
Junior Member
I receive a parse error on line 206.

How do I troubleshoot this error line-by-line?

Thanks
Smile
Re: Parse error in line 206 [message #20754 is a reply to message #20751] Wed, 27 October 2004 20:16 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Find that line and look at what is on it.

FUDforum Core Developer
Re: Parse error in line 206 [message #20771 is a reply to message #20751] Thu, 28 October 2004 14:19 Go to previous messageGo to next message
Soto123 is currently offline  Soto123   United States
Messages: 3
Registered: October 2004
Karma: 0
Junior Member
Here is what is on that line.

$result2 = mysql("RegUser", "select aNum,aApp,aOS,aDateR,aStatus from UserApp where aUser = '$row[0]' order by aNum DESC");

Any suggestions?

Re: Parse error in line 206 [message #20813 is a reply to message #20751] Fri, 29 October 2004 10:39 Go to previous message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma: 0
Member
When you refer to arrays or objects inside quoted strings you need to put the expression in brackets:

$result2 = mysql("RegUser", "select aNum,aApp,aOS,aDateR,aStatus from UserApp where aUser = '{$row[0]}' order by aNum DESC");

Otherwise the compiler just sees $row and then [0] - which isn't what you mean Smile

-Abraxa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pq_query 'prepare' error
Next Topic: how do I create a redirect in a php file
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 22 03:03:25 GMT 2024

Total time taken to generate the page: 0.02745 seconds