|
Posted by kenoli on 03/19/07 06:05
Thanks Steve and Jeff --
Your comments are helpful as I am trying to get down good formatting
practice and still learning, obviously. I'm sure one of the reasons
for the 2250 errors is that this is a fragment of the html page,
missing all of the header and the rest of the body tags. There is also
a bunch of php code I didn't include, as I figured the only part of
the script affecting speed was the stuff in the "while" clause. The
rest of the script only runs once; the while clause iterates 250
times.
The hidden field error is a result of having pulled the html out of a
heredoc format into this format. I failed to add the php tags after
doing this. Is the formatting of the code the thing that is causing
it to run so slow?
I will clean it up and see what happens, though I suspect it is
something in the way I have scripted it. The code does what I want it
to. The question I have is why it runs so slow. Is there some other
way I could have scripted it so it will run faster?
As to assigning the result arrays ($row['xxx']) to simpler variables,
I had done this and then reverted to this format trying to strip away
anything that might have slowed the script down. It didn't seem to
make any difference.
I had even assigned the "checked" conditionals to variables and
discovered that removing them and inserting the conditionals in the
html directly did speed it up a bit.
I understand the issue of not making it easy for spammers. I will
make the adjustments you suggest in this area for the final script.
The speed thing is the big issue at this point. Taking a full minute
to load this page is unacceptable.
Thanks,
--Kenoli
On Mar 18, 6:47 pm, "Steve" <no....@example.com> wrote:
> | Apart from the 2,250 errors thathttp://validator.w3.orgpicked out
> | the most obvious one is
> | <input type="hidden" name="id[]" value="{$row['person_id']}">
>
> are you saying the above is an error in html or his use of what's inbetween
> brackets?
Navigation:
[Reply to this message]
|