Lost data
| From: | Mick Lloyd | Date: | Tue, 16 May 2000 21:03:33 +0000 |
| Subject: | Lost data | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-32@lists.php.net to get a copy of this message | ||
The following line is a part of some code calling a script that allows
navigation between records output by a query.
echo "<a href =
profiles_query_public.phtml?navigate=Previous®ion=$region>Previous</a>";
The problem I have is that when $region is a single word (eg 'Pakistan') it
works fine and I can move between selected records easily. If however if
$region is more than one word (eg 'Baltic States'), only the first word (in
this case 'Baltic') is sent to the script. As a result, when the query is
re-run it finds no records.
Ideally, I would like not to have to re-run the query each time I move to a
new record but I haven't worked out a way to retain the query result and
move amongst the returned records.
Suggestions welcome.
Mick Lloyd
mjl@consultingrooms.com