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

Home » Imported messages » comp.lang.php » Where's the error?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Where's the error? [message #183081] Mon, 07 October 2013 15:46 Go to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),

When run, I get a parse error "expecting ")"" in the last line.
Notepad++ is indicating that "1961" is a number.
Because it is highlighted in red when all others are not.
"28=>array" is shown in grey, not blue as the others.

Where's the error at?
Re: Where's the error? [message #183082 is a reply to message #183081] Mon, 07 October 2013 15:53 Go to previous messageGo to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
On Mon, 7 Oct 2013 11:46:18 -0400, richard wrote:

> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>
> When run, I get a parse error "expecting ")"" in the last line.
> Notepad++ is indicating that "1961" is a number.
> Because it is highlighted in red when all others are not.
> "28=>array" is shown in grey, not blue as the others.
>
> Where's the error at?

Dufus missed a quote, that's why.
Re: Where's the error? [message #183089 is a reply to message #183082] Mon, 07 October 2013 17:10 Go to previous messageGo to next message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article <1o60wb755cn60(dot)1o4ejtsgnub1a(dot)dlg(at)40tude(dot)net>,
richard <noreply(at)example(dot)com> wrote:

> On Mon, 7 Oct 2013 11:46:18 -0400, richard wrote:
>
>> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
>> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
>> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
>> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
>> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
>> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
>> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
>> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>>
>> When run, I get a parse error "expecting ")"" in the last line.
>> Notepad++ is indicating that "1961" is a number.
>> Because it is highlighted in red when all others are not.
>> "28=>array" is shown in grey, not blue as the others.
>>
>> Where's the error at?
>
> Dufus missed a quote, that's why.

And the fathead has an extra unnecessary comma, too - not that it would
prevent things from working.

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
Re: Where's the error? [message #183232 is a reply to message #183081] Sun, 13 October 2013 17:51 Go to previous messageGo to next message
varsha.shakya is currently offline  varsha.shakya
Messages: 2
Registered: October 2013
Karma: 0
Junior Member
27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),

there must be as
27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3"),


On Monday, October 7, 2013 9:31:18 PM UTC+5:45, richard wrote:
> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
>
> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
>
> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
>
> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
>
> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
>
> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
>
> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
>
> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>
>
>
> When run, I get a parse error "expecting ")"" in the last line.
>
> Notepad++ is indicating that "1961" is a number.
>
> Because it is highlighted in red when all others are not.
>
> "28=>array" is shown in grey, not blue as the others.
>
>
>
> Where's the error at?
Re: Where's the error? [message #184218 is a reply to message #183081] Sun, 15 December 2013 19:48 Go to previous messageGo to next message
Moon Elf is currently offline  Moon Elf
Messages: 6
Registered: December 2013
Karma: 0
Junior Member
On 2013-10-07, richard <noreply(at)example(dot)com> wrote:
>
> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>
> When run, I get a parse error "expecting ")"" in the last line.

This is where SQL comes in, you might want to use some database theory for your
extensive use for the field "1961", the counter (SQL: COUNT) and so on.

It's all inside PHP, you better use it. Setting up a MySQL or PostgreSQL
databse is easy on a home machine.

> Notepad++ is indicating that "1961" is a number.
> Because it is highlighted in red when all others are not.
> "28=>array" is shown in grey, not blue as the others.
>
> Where's the error at?

Nest, nest, nest.

ME

--
Member of the DR rogue circle.
Search and you will find.
Re: Where's the error? [message #184233 is a reply to message #183081] Sun, 15 December 2013 23:37 Go to previous messageGo to next message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma: 0
Senior Member
richard, 2013-10-07 17:46:

>
> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),

Here is the error - "6106.mp3) - you forgot the closing double quotes.

> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>
[...]
> Where's the error at?

See above. And PLEASE LOOK FIRST, before you ask next time! This
newsgroup is not your personal free proofreading service.


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
Re: Where's the error? [message #184236 is a reply to message #184233] Mon, 16 December 2013 00:22 Go to previous messageGo to next message
Doug Miller is currently offline  Doug Miller
Messages: 171
Registered: August 2011
Karma: 0
Senior Member
Arno Welzel <usenet(at)arnowelzel(dot)de> wrote in news:52AE3D2E(dot)5050607(at)arnowelzel(dot)de:

> richard, 2013-10-07 17:46:
>
>>
>> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
>> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
>> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
>> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
>> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
>> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
>> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
>
> Here is the error - "6106.mp3) - you forgot the closing double quotes.
>
>> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>>
> [...]
>> Where's the error at?
>
> See above. And PLEASE LOOK FIRST, before you ask next time! This
> newsgroup is not your personal free proofreading service.

So why do you keep providing him a personal free proofreading service? Next time, tell
him his error is that he can't proofread, and let *him* find it.
Re: Where's the error? [message #184237 is a reply to message #184233] Sun, 15 December 2013 23:57 Go to previous messageGo to next message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma: 0
Senior Member
On Mon, 16 Dec 2013 00:37:18 +0100, Arno Welzel wrote:
>> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
>
> Here is the error - "6106.mp3) - you forgot the closing double quotes.
>
>> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>>
> [...]
>> Where's the error at?
>
> See above. And PLEASE LOOK FIRST, before you ask next time! This
> newsgroup is not your personal free proofreading service.

Predicted followup:

"nevermind. it is fixed now."

--
This was, apparently, beyond her ken. So far beyond her ken that she
was well into barbie territory.
-- J. D. Baldwin
Re: Where's the error? [message #184240 is a reply to message #184237] Mon, 16 December 2013 01:02 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 12/15/2013 3:57 PM, Peter H. Coffin wrote:
> On Mon, 16 Dec 2013 00:37:18 +0100, Arno Welzel wrote:
>>> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
>>
>> Here is the error - "6106.mp3) - you forgot the closing double quotes.
>>
>>> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>>>
>> [...]
>>> Where's the error at?
>>
>> See above. And PLEASE LOOK FIRST, before you ask next time! This
>> newsgroup is not your personal free proofreading service.
>
> Predicted followup:
>
> "nevermind. it is fixed now."
>

LMAO!!!

Thanks I needed that.

Scotty
Re: Where's the error? [message #184244 is a reply to message #184233] Mon, 16 December 2013 09:32 Go to previous message
Tim Streater is currently offline  Tim Streater
Messages: 328
Registered: September 2010
Karma: 0
Senior Member
In article <52AE3D2E(dot)5050607(at)arnowelzel(dot)de>, Arno Welzel
<usenet(at)arnowelzel(dot)de> wrote:

> richard, 2013-10-07 17:46:
>
>>
>> 21=>array("1961","1","Tossin' And Turnin'","Bobby Lewis","6101.mp3"),
>> 22=>array("1961","2","I Fall To Pieces","Patsy Cline","6102.mp3"),
>> 23=>array("1961","3","Michael","Highwaymen","6103.mp3"),
>> 24=>array("1961","4","Crying","Roy Orbison","6104.mp3"),
>> 25=>array("1961","5","Runaway","Del Shannon","6105.mp3"),
>> 26=>array("1961","6","My True Story,","Jive Five","6106.mp3"),
>> 27=>array("1961","7","Pony Time","Chubby Checker","6107.mp3),
>
> Here is the error - "6106.mp3) - you forgot the closing double quotes.
>
>> 28=>array("1961","8","Wheels","String-A-Longs","6108.mp3"),
>>
> [...]
>> Where's the error at?
>
> See above. And PLEASE LOOK FIRST, before you ask next time! This
> newsgroup is not your personal free proofreading service.

Oh yes it is!

--
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted" -- Bill of Rights 1689
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: parse error can't find
Next Topic: Zip Codes ctype? Pregmatch?
Goto Forum:
  

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

Current Time: Thu Nov 28 06:21:39 GMT 2024

Total time taken to generate the page: 0.05147 seconds