Re: [PHP] Working with sessions

2007-09-21 Thread tedd
At 2:35 PM -0400 9/21/07, Jason Pruim wrote: e... Never mind. Soon as I sent the e-mail I tried moving the $_SESSION['search'] = $_GET['search']; to the top just below the includes and it worked just fine! :) Ahh, the old sequence bug. Funny how variables have to be set before they contai

Re: [PHP] Working with sessions

2007-09-21 Thread Jason Pruim
e... Never mind. Soon as I sent the e-mail I tried moving the $_SESSION['search'] = $_GET['search']; to the top just below the includes and it worked just fine! :) I think my problem was the session variable was being displayed at the top of the page, and then stored after the form... p

RE: [PHP] Working with sessions

2007-09-21 Thread Jay Blanchard
[snip] Wouldn't that be what this code does: $search."; $qrow[]= mysql_query($qstring) or die(mysql_error()); $qresult = $qrow[0]; $num_rows = mysql_num_rows($qresult); //display search form echo " Sea

Re: [PHP] Working with sessions

2007-09-21 Thread Jason Pruim
On Sep 21, 2007, at 2:26 PM, Jay Blanchard wrote: [snip] I have a question about sessions, I am attempting to store a search term in a session variable to that when it finds the set of records from the database it can export it to excel. The problem I have is that the session variable is 1 sear

RE: [PHP] Working with sessions

2007-09-21 Thread Jay Blanchard
[snip] I have a question about sessions, I am attempting to store a search term in a session variable to that when it finds the set of records from the database it can export it to excel. The problem I have is that the session variable is 1 search behind... [/snip] When you do the search sto