Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - HELP need help with listing records date
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HELP need help with listing records date

 Post Reply Post Reply Page  <123>
Author
AdultStarsMgr View Drop Down
Newbie
Newbie
Avatar

Joined: 17 August 2003
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdultStarsMgr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:03pm

Yes, there is a RS for each new addition that is in the db girls. The table is : date_added which is date f0rmated when submission accurs.

Besides that, how do you call an image displayed when triggered by an date in time. IE: all listings within 7 days get a special NEW gif or star, or whatever. Easy doing true/false - stuff but this was impossible to figure out with me.

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:10pm

Very simply, you would store you image filename (and path) in a database field. When that particular record is called, you would pull the filename of the image and put it into an img html tag. See below:

'Image filename is located in a field named (example) 'imgfn'
imgfn = recordset.fields("imgfn")
Response.Write("<img src=""" & imgfn & """>"

Back to Top
AdultStarsMgr View Drop Down
Newbie
Newbie
Avatar

Joined: 17 August 2003
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdultStarsMgr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:14pm

That would work! I am stunned here of why it could not be used on the others I have pulled up as well. I will check this out.

BRB

Back to Top
AdultStarsMgr View Drop Down
Newbie
Newbie
Avatar

Joined: 17 August 2003
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdultStarsMgr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:24pm
Ok, but that is what I mean by the date_added< getdate>> problem I am having because how do I trigger that RS. I want to have this trigger happening site wide and not only on this particular page I am working on.
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:28pm

then write it into a different file, and include it into your other pages when you need it.

Back to Top
AdultStarsMgr View Drop Down
Newbie
Newbie
Avatar

Joined: 17 August 2003
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdultStarsMgr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:42pm

Ok, but that is lesser of my headaches now, the date thing for the page talked about is the problem. NOw, what do you think about this for adding headaches. Since my categorys are manually added in a admin panel, can it be put into the categories automatically by an RS?  This might fixed the problem if so be it. Here is the code in the update recordset:

<table align=left>
                  <%
  set Categories = conntemp.execute("select id, cat_name from Categories order by cat_name")

  Do While Not Categories.eof
   set AlreadyChecked = conntemp.execute("IF EXISTS (SELECT * FROM CategoryGirl WHERE cat_id = " & Categories(0) & " AND girl_id = " & ID & ") SELECT 1 ELSE SELECT 0")
   If (AlreadyChecked(0) = 1) Then
   %>
                  <tr>
                    <td align=left><input type="checkbox" class="btnbig" name="<%=Categories(0)%>" checked>
                        <%=Categories(1)%></td>
                  </tr>
              <%
            Else
   %>
                  <tr>
                    <td align=left><input type="checkbox" class="btnbig" name="<%=Categories(0)%>">
                        <%=Categories(1)%></td>
                  </tr>
              <%
            set AlreadyChecked = nothing
            End If
        Categories.MoveNext
  Loop
%>
                </table>

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:48pm

I would be able to help you better if i had written the code myself. I think it would be easier to just manually added the catagories yourself unless you have to.

Back to Top
AdultStarsMgr View Drop Down
Newbie
Newbie
Avatar

Joined: 17 August 2003
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote AdultStarsMgr Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2003 at 6:56pm

The categories are choosen by the person which is an radio button. I just wish there was a way to filter the categories to list in another category that is 20 days or newer. Does that explain it more.

I have an add category in the admin panel for future add ons too.

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.