Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
Reply
 
Thread Tools Display Modes
Old 10-23-2003   #1
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

What is the logical output from this code snippet....... (language is VFP but should be fairly discernible to anyone who has read code before.....)

procedure brandon
parameter username, password
clear
if empty(username)
username='opranaut'
endif
if empty(password)
password='intelligent'
endif

sqlport=sqlconnect('brandon',usernam,password)

sql_str='select * from brandon_master order by value'
&sql_str

*********************************************

clue:

brandon_master looks like this:

Property value
-------------------
age ???
shoesize ???
iq ???



Last edited by sarettah at Oct 23 2003, 08:58 AM
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 10-23-2003   #2
HoneyBlond
Mostly Harmless
 
HoneyBlond's Avatar
 
Join Date: Nov 2002
Location: Australia
Posts: 309
Default

Quote:
Originally posted by sarettah@Oct 24 2003, 12:49 AM
What is the logical output from this code snippet....... (language is VFP but should be fairly discernible to anyone who has read code before.....)

procedure brandon
parameter username, password
clear
if empty(username)
username='opranaut'
endif
if empty(password)
password='intelligent'
endif

sqlport=sqlconnect('brandon',usernam,password)

sql_str='select * from brandon_master order by value'
&sql_str

*********************************************

clue:

brandon_master looks like this:

Property value
-------------------
age ???
shoesize ???
iq ???
ERROR: UNKNOWN IQ EXCEPTION(80000602).
HoneyBlond is offline   Reply With Quote
Old 10-23-2003   #3
Mr Benn
Members
 
Mr Benn's Avatar
 
Join Date: Oct 2003
Posts: 113
Default

Quote:
Originally posted by sarettah@Oct 23 2003, 05:49 AM
What is the logical output from this code snippet....... (language is VFP but should be fairly discernible to anyone who has read code before.....)
...

sqlport=sqlconnect('brandon',usernam,password)

sql_str='select * from brandon_master order by value'
&sql_str
No output, because you didn't send your SQL query to some function like sqlquery()

Or was the "&sql_str" meant to imply it was executing a query with that string?
__________________
MrBenn

"As if by magic, the shopkeeper appeared."
Mr Benn is offline   Reply With Quote
Old 10-23-2003   #4
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Mr Benn+Oct 23 2003, 10:53 AM-->
QUOTE (Mr Benn @ Oct 23 2003, 10:53 AM)
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 10-23-2003   #5
Carrie
Eternal Newbie
Respin bullshit press Your Comments Are Welcomed
 
Carrie's Avatar
 
Join Date: Oct 2002
Location: Inside your monitor
Posts: 2,850
Default

The query would be returned as an array, so unless you're wanting the error code for trying to display an array you'll need to split that sucker up and then print it.

But I would suspect a return ordered by value would be Brand0n's age > shoesize > IQ.

edit: had to make that clearer



Last edited by Carrie at Oct 23 2003, 12:27 PM
__________________
Need a kick-ass design done quickly?
I recommend Sex Creator - they absolutely ROCK.
Carrie is offline   Reply With Quote
Old 10-23-2003   #6
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

LOST!!!!

__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 10-23-2003   #7
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Carrie@Oct 23 2003, 12:25 PM
The query would be returned as an array, so unless you're wanting the error code for trying to display an array you'll need to split that sucker up and then print it.

But I would suspect a return ordered by value would be Brand0n's age > shoesize > IQ.

edit: had to make that clearer
nopers

=sqlexec(sqlport,sql_str,'Temptable')

returns a cursor called temptable

that is the vfp sql execution routine.....

and you return results are obviously in descending order

actual return would be iq, shoesize, then age.........

it would default to ascending

__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 10-23-2003   #8
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by Trev@Oct 23 2003, 12:30 PM
LOST!!!!

Sorry bout that trev...........

here, try this one:



endwith

return
__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 10-23-2003   #9
Carrie
Eternal Newbie
Respin bullshit press Your Comments Are Welcomed
 
Carrie's Avatar
 
Join Date: Oct 2002
Location: Inside your monitor
Posts: 2,850
Default

I'm surprised the board didn't smack you for having a post that long!

You're right, my results are DESC and you didn't specify an ORDER BY, but you know darn well I'm a phper and in that language, you'd get an array error.
(Unless you previously specified a dbquery function that would do key->value splits, methinks.)

Bah. Either way you work it, his age has a higher value than his IQ, and being that he was born in '74, that doesn't bode well for him!



Last edited by Carrie at Oct 23 2003, 12:43 PM
__________________
Need a kick-ass design done quickly?
I recommend Sex Creator - they absolutely ROCK.
Carrie is offline   Reply With Quote
Old 10-23-2003   #10
voodooman
Members
Respin bullshit press Your Comments Are Welcomed
 
Join Date: Oct 2002
Posts: 2,695
Default

sarettaH,

No offense, but that whole thing looks just like
one of brand0n's posts.

:P



Last edited by voodooman at Oct 23 2003, 11:54 AM
voodooman is offline   Reply With Quote
Old 10-23-2003   #11
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

I was going to quote you Sarettah but that would have made this the longest thread ever with the fewest posts

I'm guessing something to do with times/dates and mail?
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 10-23-2003   #12
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by voodooman@Oct 23 2003, 07:50 PM
sarettaH,

No offense, but that whole thing looks just like
on or brand0n's posts.

:P
Hahahahah

That a damn good one
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 10-23-2003   #13
eatapeach
Members
 
Join Date: Oct 2003
Posts: 203
Default

my cat's breath smells like cat food.
eatapeach is offline   Reply With Quote
Old 10-23-2003   #14
Winetalk.com
Prostate Examiner
I quoff fine wine at corkd.com
 
Winetalk.com's Avatar
 
Join Date: Oct 2002
Location: good 'ole USA
Posts: 21,018
Default

Quote:
Originally posted by Carrie@Oct 23 2003, 12:43 PM
I'm surprised the board didn't smack you for having a post that long!

I just did
;-)))
Winetalk.com is offline   Reply With Quote
Old 10-23-2003   #15
brand0n
Guest
 
Posts: n/a
Default

10 ? "fuckyou"
20 goto 10


an "end" statement isnt needed due to the loop
  Reply With Quote
Old 10-23-2003   #16
eatapeach
Members
 
Join Date: Oct 2003
Posts: 203
Default

Quote:
Originally posted by brand0n@Oct 23 2003, 11:33 AM
10 ? "fuckyou"
20 goto 10


an "end" statement isnt needed due to the loop
ha, that brings back old memories.

every time i'd go into a store that had a TI computer i'd type that in and then go find the toy department to look for star wars stuff.
eatapeach is offline   Reply With Quote
Old 10-23-2003   #17
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

Quote:
Originally posted by voodooman@Oct 23 2003, 12:50 PM
sarettaH,

No offense, but that whole thing looks just like
one of brand0n's posts.

:P
Yeah, but it makes a whole lot more sense than his posts.........






__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 10-24-2003   #18
Mr Benn
Members
 
Mr Benn's Avatar
 
Join Date: Oct 2003
Posts: 113
Default

Quote:
Originally posted by brand0n@Oct 23 2003, 11:33 AM
10 ? "fuckyou"
20 goto 10


an "end" statement isnt needed due to the loop
The ABC's of Russian coding on the Spectrum

10 print "I sale good code"
20 goto 10
30 run

__________________
MrBenn

"As if by magic, the shopkeeper appeared."
Mr Benn is offline   Reply With Quote
Old 10-24-2003   #19
brand0n
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Mr Benn+Oct 24 2003, 03:56 AM-->
QUOTE (Mr Benn @ Oct 24 2003, 03:56 AM)
  Reply With Quote
Old 10-24-2003   #20
Mr Benn
Members
 
Mr Benn's Avatar
 
Join Date: Oct 2003
Posts: 113
Default

Quote:
Originally posted by brand0n@Oct 24 2003, 06:23 AM

that code wouldnt work, 30 run would never be seen do to the loop 20 makes, and to save you some time print = "?"
In Spectrum +3 Basic it would work. And the "?" substitution for print, would not. I did say it was for the Spectrum.
__________________
MrBenn

"As if by magic, the shopkeeper appeared."
Mr Benn is offline   Reply With Quote
Old 10-24-2003   #21
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by Mr Benn+Oct 24 2003, 05:09 PM-->
QUOTE (Mr Benn @ Oct 24 2003, 05:09 PM)
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 10-24-2003   #22
sarettah
Stay Out Of The Box
Want to see your own Advertising Here!
 
sarettah's Avatar
 
Join Date: Oct 2002
Location: Lost in the ozone
Posts: 10,318
Default

GOTO s ????

__________________


Free Adult Webcams
sarettah is offline   Reply With Quote
Old 10-24-2003   #23
Trev
Cunty
Want to see your own Advertising Here!
 
Trev's Avatar
 
Join Date: Jan 2003
Posts: 10,150
Default

Quote:
Originally posted by sarettah@Oct 24 2003, 06:31 PM
GOTO s ????

Now now now... we all had to start somewhere
__________________
Sucks to be you.
Trev is offline   Reply With Quote
Old 10-25-2003   #24
Dravyk
Easy Like Sunday Morning
Want to see your own Advertising Here!
 
Dravyk's Avatar
 
Join Date: Oct 2002
Location: Behind a couch, somewhere in Philly
Posts: 7,628
Default

Geekiest Thread on Oprano Award!!
Dravyk is offline   Reply With Quote
Old 10-25-2003   #25
Carrie
Eternal Newbie
Respin bullshit press Your Comments Are Welcomed
 
Carrie's Avatar
 
Join Date: Oct 2002
Location: Inside your monitor
Posts: 2,850
Default

Quote:
Originally posted by brand0n@Oct 23 2003, 02:33 PM
10 ? "fuckyou"
20 goto 10


an "end" statement isnt needed due to the loop
These were the best and cheapest custom screen savers ever.
__________________
Need a kick-ass design done quickly?
I recommend Sex Creator - they absolutely ROCK.
Carrie is offline   Reply With Quote
Old 10-26-2003   #26
brand0n
Guest
 
Posts: n/a
Default

Quote:


Originally posted by Carrie+Oct 25 2003, 11:45 AM-->
QUOTE (Carrie @ Oct 25 2003, 11:45 AM)
  Reply With Quote
Reply

Bookmarks
Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -4. The time now is 02:34 PM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022