User Profile
Collapse
Profile Sidebar
Collapse
rhys
Last Activity: Aug 8 '08, 04:49 PM
Joined: Nov 3 '06
Location:
-
You Da Man. Works for me!!!!... -
Thank you again!! My local Linux guru begged off on this one, nasty summer cold, but I think my code scared him. That, or he just didn't want to wade through it. Too bad -- he uses a souped-up version of the jed editor, may well have spotted it.
I can't tell you how many times, over the last several years and 2 previous incarnations of this system, I have felt totally alone in this world, on a sea of one, storm raging, no land in sight,...Leave a comment:
-
Well, skin me alive!! I DIDN'T EVEN SEE IT!! Even when you pointed it out -- my editor showed 65 to be the line above -- I STILL had a hard time finding it. I won't blame the tiny screen on my development laptop, or its 640x480 resolution, or my bifocals, which are obviously not progressive enough. Or the propensity for the human brain -- or at least mine -- to subconsciously ignore what it does not fathom. But your idea of a syntax-highlighting...Leave a comment:
-
contains sourve
I reviewed my code more closely, and found a couple of minor issues, but nothing which affected this error. I moved my html around, though it is scarcely necessary for this program, also with no effect.
I zipped up that file, and I must be the dumbest guy in town, because I can't see where to attach it to this. All tips welcome. Thx again!! --
Found it!!
Rhys...Leave a comment:
-
Yeah weird. I got it to successfully parse -- ALMOST -- by replacing the remaining brackets with parens. Now I'm getting a parse error -- "unexpected $end in..." the line past my end. My last line is </html> on line 343, and this error occurs on line 344. It has me poring over my code again, looking for a {} or [] or "" mismatch, as yet unsuccessfully, and i'm wondering if i have other structure issues, with my html or something....Leave a comment:
-
I'm running PHP 5.1.6, mysql Ver 14.12 Distrib 5.0.24a, and Ubuntu 2.6.17-10.34-generic...Leave a comment:
-
!!False Alarm!! Sort of... I found that if I replaced the [] around subscript names with () it WORKS!! Parses at least... There's one for the manual... but then, how did the previous []'s -- and there were many -- work? And why not now? I'm just a guppy in this ocean, and this is scary!! -- Rhys...Leave a comment:
-
I SPOKE TOO SOON!! The same parse error has returned. I was moving through my source, where virtually ALL of my parse errors were related to mysql query results, and references to them. I found that the parser did not like subscripted arguments or operands in math instructions, function calls, or switch:case commands. In addition, it appeared that only the current result set was reliably available for reference. I got the parser to make it all the...Leave a comment:
-
Oh yeah -- a confusing aspect of this problem was its manifestation: calls to prior result sets worked, even in a new result set, but then calls to the current result set failed. Only when prior calls to the senior result set were moved outside the current result set, did calls to it work. Interesting, eh?...Leave a comment:
-
These are my first real forays into PHP and MySQL with my real database -- formerly PostGreSQL, formerly C-ISAM -- after the tests had me convinced I knew what I was doing. Obviously I have some of the nuances yet to learn. And I'm sure the way I nest my queries belies my old-school background.
I have yet to make it through the parser, waited until it grew too large to try. But I'm learning!! And there's lots more of this program to...Leave a comment:
-
Thanks again for caring!! Here is what I have discovered:
I think my current-result-set suspicions have some merit... I found that when i move all references to the first result set -- $pipe -- to occur before the second -- $subt -- happens, store them in regular variables for later use, then subsequent assignment of subscripted mysql table elements to regular $variables works, as long as it is the current result set. The assignment...Leave a comment:
-
I hope i haven't lost your interest. This puzzle continues to vex me. I try to think of alternative approaches, but really need to do it this way, i think.
I guess i don't seek a specific solution to this particular problem, as much as an answer to a more general question: Am i violating any basic tenets or precepts of MySQL by structuring my queries and result sets such that i have? I had hoped to have the result sets of several queries...Leave a comment:
-
I checked that specifically. insert a blank line above it, it moves down. Take that blank line out and insert a blank line below it, it is the same. Were it a later line it would stay the larger value. i have pored over the getSurf function it calls shortly before this, to see if anything amiss there -- not apparently.
It's a Doozie all right!! They'll call it the Rhys Bug. Old school meets Hi Tek. Thx again for your attention!! ...Leave a comment:
-
Dang it, i provided a tagless sample -- AGAIN -- as requested -- BEFORE i saw this post. Rest assured I reviewed my code closely first, I WON'T do it again, and please forgive this old newbie!! -- Rhys...Leave a comment:
-
You guys are the greatest!! I guess I have friends I don't even know.
The problem still exists -- I have found no string issues in my code yet -- and it's not caused by comments only present in my example.
I will post another version of the problem code, without code tags to confuse editors, and most carefully, so as to avoid pesky typos!! This sample will be slightly more complete too.
[code=php]$presult...Last edited by pbmods; Aug 24 '07, 07:14 PM. Reason: Added CODE tags for readability. To view without line numbers, click "Reply".Leave a comment:
-
We noticed my {/( issues earlier, and those exist only in the example i (poorly) provided, not my actual code. The comments you note are also only in the example i supplied. But thank you for your attention!! -- Rhys...Leave a comment:
-
Thank you for your immediate consideration of my problem. I have reviewed my code more closely, and find no problems within strings such as you speak of. I did experience one of those problems, in a select string, as noted in my example, and i was able to circumvent it by assigning the subscripted variable to a regular variable, which i used in my select statement.
The fact that this is a parse error, in a simple assignment instruction,...Leave a comment:
-
I just noticed another typo -- on line 15 i close the insert function with a } and not a ) so that is not the source of my issues either -- rhysLeave a comment:
-
You are correct, sir. And pardon the exclusion of [code] tags which would have prevented the earlier misunderstandin g -- I will not make that error in the future!! -- Rhys...Leave a comment:
-
in other words, the problem still exists. And i am sorry to confuse the issue with a typo, but rest assured that is only in the example, and not my real problem. Thx!!Leave a comment:
No activity results to display
Show More
Leave a comment: