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

Home » General » PHP discussions » Parse error in line 206
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Parse error in line 206 [message #20751] Wed, 27 October 2004 15:09 Go to next message
Soto123 is currently offline  Soto123   United States
Messages: 3
Registered: October 2004
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 16: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
add to buddy list
ignore all messages by this user
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 10:19 Go to previous messageGo to next message
Soto123 is currently offline  Soto123   United States
Messages: 3
Registered: October 2004
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 06:39 Go to previous message
Abraxa is currently offline  Abraxa   Germany
Messages: 72
Registered: August 2004
Location: Germany
Karma: 0
Member
add to buddy list
ignore all messages by this user
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
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Tue Oct 17 00:12:22 EDT 2017

Total time taken to generate the page: 0.00818 seconds