Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Jeff Harris
On Aug 3, 2003, "Micah Montoy" claimed that: |Anyone know of a way to use a variable that isn't defined until further down |the script at the top. I have a counter and once everything runs through |the script, the count is complete, I need to display this at the top above |the displayed results.

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Justin French
Ok, this is completely off the top of my head, and there is more than likely a better way, but if you HAVE to do this, then I guess here's an option: 1. turn on ob (output buffering at the top of the script 2. where you want the counter to be, echo something unique like [EMAIL PROTECTED]@ 3. on

Re: [PHP] grabbing variable from bottom to top

2003-08-03 Thread Jason Sheets
You can't get the intended value from a variable that hasn't been defined yet, obviously because you haven't given the variable a value. If you are trying to make something like a counter you may consider one of the following: 1. Insert the value into a database like MySQL or PostgreSQL, 2. Wr

[PHP] grabbing variable from bottom to top

2003-08-03 Thread Micah Montoy
Anyone know of a way to use a variable that isn't defined until further down the script at the top. I have a counter and once everything runs through the script, the count is complete, I need to display this at the top above the displayed results. I thought about and tried a function but I still