Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Nathon Jones #1
database - show all records apart from the 1st...how?
Hi,
We have an events calendar in Access, and we are using VBScript/ASP for the
site.
Is it possible to display ALL events, apart from the 1st record?
We have a "latest news" section on a page, which displays the very latest
event (1st record in the database table). Below that we want to drop in a
repeat region for "other events" that would display everything,
chronologically, apart from the 1st record which is already displayed in
"latest news".
Thanks
Nath.
Nathon Jones Guest
-
MMColParam and Default Show All Records?
I have a recordset and I want to set the default variable for MMColParam to default to showing all records in case the page is called outside of the... -
show all records apart from First
This may be really easy - but can anyone tell me how to create a record set to show all records except the first record. I would use the primary... -
Show Multiple Records in one Row
Hi We can do this using Cross Tab SQL Query. Can you send the Table name and fields so that i can give you the correct Cross Tab Query for this.... -
How to get all records to show in the database all the time please
Shuqian <peacedmr@yahoo.com> wrote: After you enter Find mode and enter your search criteria, you have to hit Enter to perform the Find. You... -
new records will not show up in form
I have created a form using a query and I want to add new records, and I want them to show up in the form. However, when I add new records they... -
BigJon1999 #2
Re: database - show all records apart from the1st...how?
In PHP i do it like this... ( for you, you need the ASP equiv of 'data_seek' )
# Get All Info $qAll='SELECT * FROM table WHERE bla bla';
$rAll=mysql_query($qAll,$conDB) or die(mysql_error().'-getAll-');
$numAll=mysql_num_rows($rAll); # if ($numAll>0): mysql_data_seek($rAll,
0); --- this line for all, or ',1' to skip first while
($rowAll=mysql_fetch_assoc($rAll)): echo $rowAll['fieldname'];
endwhile; endif; # This data_seek is real useful, as i can use the same DB
result set many times on the same page... Hope this helps.
BigJon1999 Guest
-
CMBergin #3
Re: database - show all records apart from the 1st...how?
Get all your results in a single recordset.
Display the latest record. Below the latest record, add
yourRSName.MoveNext().
Use a normal repeat region set to display all records in the area you'd like
to show other events.
"Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
news:d047vp$1ef$1@forums.macromedia.com...the> Hi,
>
> We have an events calendar in Access, and we are using VBScript/ASP for> site.
>
> Is it possible to display ALL events, apart from the 1st record?
>
> We have a "latest news" section on a page, which displays the very latest
> event (1st record in the database table). Below that we want to drop in a
> repeat region for "other events" that would display everything,
> chronologically, apart from the 1st record which is already displayed in
> "latest news".
>
> Thanks
> Nath.
>
>
CMBergin Guest
-
Julian Roberts #4
Re: database - show all records apart from the 1st...how?
Try
select * from news
where id not in (
select top 1 id from news order by id
)
--
Jules
[url]http://www.charon.co.uk/charoncart[/url]
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004
Julian Roberts Guest
-
Nathon Jones #5
Re: database - show all records apart from the 1st...how?
Hi CM,
Sorry, but can you talk me through that in a little more detail?
So, I create one recordset, that displays all the events, arranged by date
desc, so that the latest record, is 1st.
How do I then add Recordset.MoveNext?
For my sakes (!), lets say I have two fields showing. This is how it would
appear in my code (within a standard repeat region)...
<%=(rsEvents.Fields.Item("eventname").Value)%><b r>
<%=(rsEvents.Fields.Item("eventdate").Value)%>
So where am I adding - rsEvents.MoveNext()?
Thanks again.
Nath.
"CMBergin" <NoHarvestForYou@NoSpam.org> wrote in message
news:d04erv$c1i$1@forums.macromedia.com...> Get all your results in a single recordset.
> Display the latest record. Below the latest record, add
> yourRSName.MoveNext().
> Use a normal repeat region set to display all records in the area you'd
> like
> to show other events.
>
> "Nathon Jones" <nathonjonesNOT@kirkmoor.com> wrote in message
> news:d047vp$1ef$1@forums.macromedia.com...> the>> Hi,
>>
>> We have an events calendar in Access, and we are using VBScript/ASP for>>> site.
>>
>> Is it possible to display ALL events, apart from the 1st record?
>>
>> We have a "latest news" section on a page, which displays the very latest
>> event (1st record in the database table). Below that we want to drop in
>> a
>> repeat region for "other events" that would display everything,
>> chronologically, apart from the 1st record which is already displayed in
>> "latest news".
>>
>> Thanks
>> Nath.
>>
>>
>
Nathon Jones Guest



Reply With Quote

