This is a discussion on "Can't find bug" within the Classic ASP section. This forum, and the thread "Can't find bug are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Can't find bug
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Can't find bug
I have this script
the SQL printed out is right put it doesn't print out the recordcount or anything after that. I'm completely baffelled. I'm sure when the answer comes it will be some stupid answer and I would appreciate any help. jakyra |
|
|
|
||||
|
Can you post the entire page?...
and also the generated sql statement? Cheers,
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
The I have two SQL statements in the page I'm trying to load.
SELECT PermissionText FROM TblPermissions WHERE PermissionLevel = 4 SELECT NameFirst FROM TblIndividuals WHERE ID = 1850 both test out fine on the local copy of the database (which is synched with the online one.) the lines immediately proceeding and the calling lines are (respectively): Session("user") = ID Session("ForceChange") = ForceChange Session("myState") = Permissions Session("myTeacherID") = TeacherID Session("mySchoolCode") = SchoolCode myStatus = GetValue(Permissions, "permissions") myName = GetValue( ID, "reviewer") Session("myStatus") = myStatus Session("myName") =myName which returns the following if printed out user: 1850 ForceChange: False myState: 4 myTeacherID: mySchoolCode: myStatus: myName: The entire function is :
thanks! jakyra |
|
|||
|
Page of originating code
|
|
|||
|
im abit concerned about all the times you have included the same file - #include file="Code/SecurityClose.asp"
Are you aware that includes are processed before the asp code? |
|
|||
|
The includes file has the code that closes the connection to the database.
It was my understanding that I need to do this before the end of the page if I redirect to another page. I didn't think that the connection would be closed. Is there a "more correct" way to do this? Thanks, jakyra |
|
|||
|
nope, your code wont stop running when it gets to a Response.Redirect, you can just open your connection at the top and close it at the bottom.
|
|
|||
|
I found my error
I'm too embarassed to say what it was. Thanks for taking the time to look through this. jakyra (who's super embarassed) |
|
|||
|
Smokie,
Thanks for the info! I guess this is what comes of teaching yourself. jakyra |
![]() |
| Tags |
| bug |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can you find | simonb | Webforumz Cafe | 9 | Oct 18th, 2007 18:01 |
| Where to find a designer? | jonbcheshire | Starting Out | 2 | Jul 25th, 2007 07:41 |
| Find a post | DregondRahl | Webforumz Cafe | 4 | Jun 5th, 2007 12:40 |
| Hi, I need help to find a host... | Cat22 | Hosting & Domains | 13 | Nov 15th, 2006 14:42 |