Hi,
I have a simple query:
select * from users where country = 'united states'
I display 9 records per page using SQL Server and ASP. For example,
if the query returns 14 records, I display the
first 9 on page 1 and records 10 to 14 on page 2
and so on.
If the query doesn't find any record, i have a message
like '0 records found'
Problem is if have country composed of two words like
'United States' or 'United Kingdom', it displays
the first page but on the second page it displays
'0 records found' even if there are records to be displayed.
However, I have no problem with one word country like 'France' or 'Canada'
Any help would be appreciated.
Thanks,
Vias
I have a simple query:
select * from users where country = 'united states'
I display 9 records per page using SQL Server and ASP. For example,
if the query returns 14 records, I display the
first 9 on page 1 and records 10 to 14 on page 2
and so on.
If the query doesn't find any record, i have a message
like '0 records found'
Problem is if have country composed of two words like
'United States' or 'United Kingdom', it displays
the first page but on the second page it displays
'0 records found' even if there are records to be displayed.
However, I have no problem with one word country like 'France' or 'Canada'
Any help would be appreciated.
Thanks,
Vias