Ok, you need to think through what you are doing some.
You are using different methodologies within the same page I think. That makes no sense.
Before this, in prior discussions you hooked up to the database and you got your input variables.
Then you did your query using the id that was passed in as your key.
You only need to do that once and you need to do it at the very beginning of the program.
Then you have all the data you need to do everything else.
It looks to me (from what you posted) that you are trying to do 2 queries. The one you posted today that is totally discombobulated and the one you were doing during the hurricane which we had figured out.
You only need one query. But it has to occur before you output anything.
So your flow becomes:
Get your input variable.
Hook up to the database. (these 2 items can be done in either order)
Do your query
grab your results
present your data.
Once you put up the code I will try to show you what I mean.
.
__________________
All cookies cleared!
|