@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> "all my data"?
<1> well, if I p*** it a var/object name
<1> I don't mean everything in memory :)
<0> Response.Write()
<0> or make up a little output() function that'll do it
<1> so for a complex var or object I'd just have to loop recursively ?
<0> that'll write "> VarValue <"
<0> yep
<1> there's nothing native ?
<0> nope
<1> cripes
<1> how do you survive ?
<1> that's core functionality as far as I'm concerned :)
<0> Easy- I write a function to do it
<0> I put it in my debug.asp
<1> I don't suppose you'd be willing to share ?



<0> And, realistically, I havn't done it in years
<1> it'd save me an awful lot of stupid questions here
<0> don't have one on hand
<1> ok, fair enough
<1> I wonder if google's feeling clever today
<0> actually...
<1> thanks for your time
<0> http://www.nomorepasting.com/paste.php?pasteID=67421
<1> right, I gotcha
<0> putting that in debug.asp, and including it at the end of a page will list out the form fields, querystring values, cookies, session values, and servervariables into the end of the page
<0> but that doesn't do anything for outputting a recordset or somesuch, for example
<1> that dumps all the session/form type vars does it ?
<0> basically
<1> I was hoping more of a funciton I could explicitly p*** thinngs to and it just junks that to the browser
<1> so I can make head o tail of the mess I'v created
<0> Response.Write()
<0> which works for simple variables
<0> For a recordset or somesuch, you'd need to create a function to do it
<1> yeah, that's what I'm after
<1> recordsets, db objects etc
<1> I think I have one here..
<1> http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4340&lngWId=10
<0> really a recordset is mostly what you'd need to do
<1> that look about right to you /
<0> and that's reletively easy
<0> first glance, no. and I say that because it's from PSC
<1> heh
<0> 99.9% of **** on PSC is just that... ****
<1> for sure
<0> Are you using .net?
<1> no, cl***ic
<1> I need to learn it to support legacy work
<1> they're moving away from asp in general
<0> Then that won't work. because it's .net
<0> besides, it's not even ASP
<1> well I'm learning vbscript really aren't i
<0> mostly what you'd need to dump is a recordset.
<0> .net is hardly vbscript. not even comparable
<1> I'm not doing .net :)
<0> except somewhat in syntax
<0> I know this
<0> That code you just linked to
<0> it's both .net, and not even asp.net
<0> ergo: no dice
<0> most of what you'd need to dump is a recordset
<0> And it's reletively easy to whip up a function to do that
<0> build a table, looping thing first the fields of the recordset to create column headers, then loop throw each row, and in each row, loop through eahc field, outputting the value
<1> oh sure, but I conme from a php bacground. I'm about 2 evenings into this
<1> it's like coding php with thick gloves on
<1> I know what I need to do, I just can't get it down in code easily ;)
<0> heh, generally true for going between any two languages
<1> and I'd need this recursive to account for multidimensional arrays
<1> I'll find something on google, no matter :)
<0> http://www.nomorepasting.com/paste.php?pasteID=67422
<0> that's coming from memory I've not used in 2 years, so take with a grain of salt
<0> and I did that in notepad, so there's no accounting for testing or typos
<1> right you are :)
<2> hey in asp i use elseif or else if ?
<0> try each.
<0> takes 12 seconds, and you learn your answer through the valuable tool of experimentation
<2> but i'll change big system



<2> tks
<2> ;]
<0> English, please./
<3> poste9: if you don't even know that, then stay away from big system
<0> heh
<2> im php programmer
<2> sry
<3> asp isn't a language in it self... so you could use jscript, in which it would be else if ;)
<3> +case
<4> stupid pc crapped out on me
<4> I'm trying to use Set dbobject = Server.CreateObject ("ADODB.Command")
<4> and my query appears ti be failing, in tat my .mdb isn'r growing, but I can't place a debug function for it
<4> in php we have mysql_error() to show the last db error to mysql
<0> the createObject will not execute a qery
<0> query*
<4> I see a oDB.Execute and .Prepared and .CommandText
<4> is there a .Error ?
<4> :D
<0> The error generated will cause the page its self to error
<0> unless that error is trapped
<4> is there a paste policy in here ?
<5> yup
<5> don't paste
<5> use a paste-service
<4> got it :)
<4> http://www.nomorepasting.com/paste.php?pasteID=67426
<4> how can I check the status of that query ?
<0> Define "status"
<4> well. it no worky. apathy need explanation. apathy brain hurt staring at foreign code.
<0> ebonics startrek? cl***ic.
<4> heh
<0> is MM_petesdsn_STRING a connection object, or a string?
<4> Dim MM_petesdsn_STRING
<4> MM_petesdsn_STRING = "dsn=petesdsn;"
<0> yeesh, this guy ****s
<0> What does the page show when you execute it?
<4> the response.write of the query string
<4> and the the form beneath I didn't paste
<4> no kind of error
<0> Is there an On Error statement somewhere in the script?
<4> nope
<0> you sure?
<4> http://pete.soapmedia.co.uk/email_insert.asp
<4> you check that, I'll paste the hwole page
<4> http://www.nomorepasting.com/paste.php?pasteID=67427
<4> there
<0> is there an On Error in "onnections/petesdsn.asp"?
<4> Dim MM_petesdsn_STRING
<4> MM_petesdsn_STRING = "dsn=petesdsn;"
<4> the whole doc
<3> petes_SLOPPY_code
<0> Then if no error is being generated on the page, then no error is occuring
<4> this is probably my third or fourth hour of learning, cut me some slack ;)
<4> ok, so why is no data added to the db is the real question
<4> how can I debug that ?
<0> I'm surprised that even executes
<3> are you using stored procedures?
<4> nope
<0> as it shouldn't even by one of the first few lines
<4> how do you mean ?
<0> uhh..
<0> If (CStr(Request("insert")) = "chicken_chow_mein") Then
<0> is insert = "chicken_chow_mein" ?
<4> <input type="hidden" name="insert" value="chicken_chow_mein">
<4> :)
<3> why this command object and all this complexity, when you could just create a connection object and execute("insert into table (field1, field2) values (1, 1)") ?
<4> the response.write work fine
<4> so that code block is executed
<4> Mac-: the answer to that is I don't' know any better
<4> listen, I hate when people do this to me mid-flow, but I gotta do it to you
<4> my stove just arrived and I gotta hump it down my lane
<3> hehe
<4> I may catch up with you guys later and pester yousome more
<4> thanks for your time so far :)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #asp
or
Go to some related logs:

dscaler 0x8007001f
flatron l1715s pics
#heroin
#flash
gebus stained glass
du7ah
#computers
#cisco
#windows
#politics



Home  |  disclaimer  |  contact  |  submit quotes