Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 26th, 2004, 04:09 PM
Lottie Lottie is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 15 Lottie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 55 sec
Reputation Power: 0
SELWONK - I Need your help PLEASE!

Hi Selwonk,

I have been browsing through the forums today and your name has popped up a number of timws, helping people out...I have tried to email you but i cant seem to, so I thought I would post in here and see if you would respond!

The problem I have is knowing how to transfer an existing frameset with variables into a standard page with page includes. I have posted the full description in the forum but no one has responded...

If there is any chance at all you can help me out that would be great . I have included what I have posted again in here for you to see and I desperately hope I hear from you. Many thanks Lottie

Hi there really need some help ). I have a frameset with multiple frames which I want to convert to a simpler frameset with pages with "includes" rather than frames. However each frame has ASP code with variable controls ,etc. as well as some javascript functions and I have tried to move these around to make the same page work with the menu in an include rather than frame, but with no success! The URL is : www.trust-europe.com/dev This is the frameset as is, what I could kinda do with is someone to take a peak at the actual files in the frameset and let me know how to swap it, as I am really desperate having spent most of today on it!! ( Look forward to hearing from you!!

Reply With Quote
  #2  
Old September 29th, 2004, 08:08 PM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,943 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 10 h 7 m 31 sec
Reputation Power: 62
Sorry - only just spotted this (shucks - thanks for thinking of me )

Post some of your code so we can see what the score is
__________________
selwonk

If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more!

Reply With Quote
  #3  
Old October 4th, 2004, 09:22 AM
Lottie Lottie is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 15 Lottie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 55 sec
Reputation Power: 0
Smile

Quote:
Originally Posted by selwonk
Sorry - only just spotted this (shucks - thanks for thinking of me )

Post some of your code so we can see what the score is

Hi Selwonk,

Thank you SO much for getting back to me ) I have actually managed to fix this problem now but I have a new problem!!!

<%
sql = "SELECT ID_Pais," & Ucase(idioma) & ",idioma FROM NombrePaises Where Activo=1 ORDER BY " & Ucase(idioma) & " ASC"
set rdo = conex.Execute(sql)
%>

<% while not rdo.EOF %>
<%=rdo(1)%><br>
<%rdo.MoveNext %>
<% wend %>

If you can could you please explain to me exactly what this code does, as I am getting a little lost as to what the 1 indicates in : <%=rdo(1)%>

Thank you so much

Reply With Quote
  #4  
Old October 4th, 2004, 11:17 AM
selwonk's Avatar
selwonk selwonk is offline
Contributing User
ASP Free Frequenter (2500 - 2999 posts)
 
Join Date: Jun 2004
Posts: 2,943 selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level)selwonk User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 6 Days 10 h 7 m 31 sec
Reputation Power: 62
This will return the first column of your record set (<%=rdo(1) %>) for each row (<% while not rdo.EOF %>)

To make you code simpler to understand you could use <%= rdo("FieldName") %>

Reply With Quote
  #5  
Old October 4th, 2004, 11:28 AM
Lottie Lottie is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 15 Lottie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by selwonk
This will return the first column of your record set (<%=rdo(1) %>) for each row (<% while not rdo.EOF %>)

To make you code simpler to understand you could use <%= rdo("FieldName") %>

Thank you so much! Perfect, that makes total sense, I was just getting a bit lost, because i tried putting 2 there and it errored, then I looked at it and it didnt visually appear to be column 1, but yeah now you have said it totally fits in!!!
Could you maybe help me with another little problem...... sorry to bother you again, you must get sick of newby learners like me!!!
I think I need to make some sort of loop???? Basically I need to count how many records there are in the database for each country code. At the moment I am only calculating it for Spain, as below....

set conexTJL = Server.CreateObject("ADODB.Recordset")
conexTJL.ActiveConnection = "Driver={SQL Server};" & _
"Server=217.76.131.33;" & _
"Address=217.76.131.33,1433;" & _
"Network=DBMSSOCN;" & _
"Database=qj003;" & _
"Uid=qj003;" & _
"Pwd=nicolas;"

conexTJL.Source = "SELECT * FROM Anuncios WHERE CodPais=6 AND Activo=1"
conexTJL.CursorType = 1
conexTJL.CursorLocation = 2
conexTJL.LockType = 3
conexTJL.Open()
numAdsES = conexTJL.RecordCount
So CodPais=6 is COUNTRY CODE = 6 which is SPAIN, and there is a numeric value representing each country in the database and I need to count how many records there are per country, NOT JUST SPAIN. Please could you let me know how i could do this, the only way i have thought is to just repeat the above chunk of text for EACH country, but wouldnt this be really long winded and memory intense with so many - what i hope are - unnecessary database connections??
I was thinking maybe some kind of loop?? For i = 1 to 6 (for say 6 countries) and then something like ... WHERE CodPais="i" ????
I hope I am making sense!! And thank you again for your help ).

Reply With Quote
  #6  
Old October 7th, 2004, 01:04 PM
techyashish techyashish is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: California,UA
Posts: 42 techyashish User rank is Private First Class (20 - 50 Reputation Level)techyashish User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 3 h 43 m 21 sec
Reputation Power: 5
Send a message via MSN to techyashish Send a message via Yahoo to techyashish Send a message via Google Talk to techyashish
can i help

hi there


you need group clause to do this thing, i mean if u want to count on basis of country


regards

ashish

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > SELWONK - I Need your help PLEASE!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT