Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: Unfolding Nature Unfolding Nature: Being in the Implicate Order   Myyco.com Golden Teacher Liquid Culture For Sale   Original Sensible Seeds Autoflowering Cannabis Seeds, Bulk Cannabis Seeds

Jump to first unread post Pages: 1
This is why marijuana and computers just go great together. :-)
    #4845950 -

R4 visualizer and laughing my ass off at the show Stella.





:smile:

What are some of your weed activities? :smile:


--------------------
:heart:

Edited by poppyguy (10/24/05 04:13 PM)

Extras: Filter Print Post Top
Re: This is why marijuana and computers just go great together. :-) [Re: theuser]
    #4845971 -

Code:
my $stmt = qq/INSERT INTO tblOrders / .
$app->sql->insert_fields([qw/chrDeliveryATTN chrCustomerCompany chrCustomerBillingStreetAddress chrCustomerBillingSuburb chrCustomerBillingCity chrCustomerBillingState chrCustomerBillingDistrict chrCustomerBillingCountry chrCustomerBillingPostCode decCustomerAdditionalDiscount fkeyCustomerID fkeyResellerID fkeyUserID chrDeliveryName chrDeliveryStreetAddress chrDeliverySuburb chrDeliveryCity chrDeliveryState chrDeliveryDistrict chrDeliveryCountry chrDeliveryPostCode chrPaymentType chrPaymentBank intPaymentCheckNumber intPaymentAccountNumber intPaymentRoutingNumber chrPaymentInformation chrPaymentCCName chrPaymentCCType intPaymentCCNumber intPaymentExpMonth intPaymentExpYear chrPaymentAuthorization chrOrderStatus decProductTax decOrderShipping decOrderDiscount decOrderSubTotal decOrderTotal decResellerDiscount decParentResellerDiscount decCustomerDiscount fkeyResellerParentID txtOrderComments txtOrderNotes dtOrderCreated tmOrderCreated dtmOrderCreated/]) .
qq/ VALUES / .
$app->sql->insert_values([qw/chrDeliveryATTN chrCustomerCompany chrCustomerBillingStreetAddress chrCustomerBillingSuburb chrCustomerBillingCity chrCustomerBillingState chrCustomerBillingDistrict chrCustomerBillingCountry chrCustomerBillingPostCode decCustomerAdditionalDiscount fkeyCustomerID fkeyResellerID fkeyUserID chrDeliveryName chrDeliveryStreetAddress chrDeliverySuburb chrDeliveryCity chrDeliveryState chrDeliveryDistrict chrDeliveryCountry chrDeliveryPostCode chrPaymentType chrPaymentBank intPaymentCheckNumber intPaymentAccountNumber intPaymentRoutingNumber chrPaymentInformation chrPaymentCCName chrPaymentCCType intPaymentCCNumber intPaymentExpMonth intPaymentExpYear chrPaymentAuthorization chrOrderStatus decProductTax decOrderShipping decOrderDiscount decOrderSubTotal decOrderTotal decResellerDiscount decParentResellerDiscount decCustomerDiscount fkeyResellerParentID txtOrderComments txtOrderNotes dtOrderCreated tmOrderCreated dtmOrderCreated/],$app->query) . ';';

#$app->output($stmt);


my $pkeyOrderID = $app->sql->insert($stmt,"pkeyOrderID","tblOrders");

my $state = $app->query->param('chrDeliveryState');
my $country = $app->query->param('chrDeliveryCountry');
my($taxable,$shipping,$subtotal,$total);
# get order items

my $ifields = [qw/fkeyProductID intOrderItemQuantity decOrderItemPrice decOrderItemOptionsPrice decOrderItemShipping blOrderItemTaxable/];
foreach my $r (@{$idata}){
my @values = ();
foreach my $f (@{$cfields}){
push(@values,$r->{$f});
}

my $istmt = qq/INSERT INTO tblOrderItems / .
$app->sql->insert_fields(["fkeyOrderID",@{$ifields}]) .
qq/ VALUES ("/ . join('","',($pkeyOrderID,@values)) . qq/")/;
#$app->output($istmt);
my $pkeyOrderItemID = $app->sql->insert($istmt,"pkeyOrderItemID","tblOrderItems");

# get order item options

my $bfields = [qw/fkeyProductOptionID txtProductOptionValue/];
my $ostmt = qq/SELECT / . $app->sql->select_fields($bfields) . qq/ FROM tblCartItemOptions WHERE fkeyCartItemID='/ . $r->{pkeyCartItemID} . qq/'/;
my $odata = $app->sql->select_all_hr($ostmt);

my $ofields = [qw/fkeyProductOptionID txtProductOptionValue/];
foreach my $r (@{$odata}){
my @values = ();
foreach my $f (@{$ofields}){
push(@values,$r->{$f});
}
my $ostmt = qq/INSERT INTO tblOrderItemOptions / .
$app->sql->insert_fields(["fkeyOrderItemID",@{$ofields}]) .
qq/ VALUES ("/ . join('","',($pkeyOrderItemID,@values)) . qq/")/;
#$app->output($ostmt);
my $pkeyCartItemOptionID = $app->sql->insert($ostmt,"pkeyCartItemOptionID","tblOrderItemOptions");
}

############################ calulate order

my $pkeyProductID = $r->{'fkeyProductID'} || $r->{'pkeyProductID'};

$r->{decCartItemTotal} = sprintf("%.2f", $r->{decCartItemPrice} * $r->{intCartItemQuantity});
$subtotal += $r->{decCartItemTotal};
$taxable += $r->{decCartItemTotal} if $r->{blCartItemTaxable} == 1;
$shipping += $r->{decCartItemShipping};


}

my %params;

my $discount = $app->query->param('decCustomerDiscount') || 0;
my $ITEM_TOTAL = $subtotal;

$subtotal = $subtotal-($subtotal * ($discount/100));
my $additionalDiscount = $app->query->param('decCustomerAdditionalDiscount') || 0;
if ($additionalDiscount){
$subtotal=$subtotal-($subtotal*($additionalDiscount/100));
}

my $text = "New";
my $ordershipping;
my $shippingdiscount=0;



ad infintum...


--------------------



Extras: Filter Print Post Top
Re: This is why marijuana and computers just go great together. :-) [Re: Krishna]
    #4846004 -

^^^^^^ Stops the internet from working

I usually play some CSS (And kick a lot of ass on it)

Watch movies, mostly.


--------------------
It's Krang, Bitch!  :krang:

Extras: Filter Print Post Top
Re: This is why marijuana and computers just go great together. :-) [Re: theuser]
    #4846015 -

Listen to psy, make psy, play diablo like its real life.


--------------------
TRUMP 2020

Extras: Filter Print Post Top
Re: This is why marijuana and computers just go great together. :-) [Re: XUL]
    #4846108 -

Listen to some tunes and piddle fart.


--------------------
:yesnod::thumbup:

Extras: Filter Print Post Top
Re: This is why marijuana and computers just go great together. :-) [Re: skydog]
    #4846288 -

The frequency on my cheap monitor makes my eyes go nutty if I'm stoned and don't have my glasses on... if contacts, god damn they dry up so quickly and I almost get the spins.

I figure that if I gaze into the tv or computer long enough and doing something interactive like video games, it sucks the high right out of me.


--------------------
When the stress burns my brain it's like acid raindrops
maryjane is the only thing that makes the pain stop

Extras: Filter Print Post Top
Jump to top Pages: 1

Shop: Unfolding Nature Unfolding Nature: Being in the Implicate Order   Myyco.com Golden Teacher Liquid Culture For Sale   Original Sensible Seeds Autoflowering Cannabis Seeds, Bulk Cannabis Seeds


Similar ThreadsPosterViewsRepliesLast post
* Make your very own ENGRISH!! "Computational Engrish 101" Strumpling 1,321 13 01/14/05 03:45 AM
by Strumpling
* More computer problems. *DELETED* KahSol 944 9 04/29/05 09:36 AM
by PrisonSong
* alcohol + marijuana = x?
( 1 2 all )
Billyo450 2,751 28 04/11/05 12:18 PM
by funkymonk
* Sometimes I fight with my computer. Little Shroom 2,411 17 07/24/03 05:45 PM
by oDin
* hemp & marijuana: myths & realities eric_the_redS 3,671 10 11/02/12 04:16 PM
by SARAtonin
* Marijuana and pregnancy. Just some facts. blissedout 1,995 6 10/08/05 03:56 AM
by danksistah
* Addicted to my computer - I'm serious, it's really bad
( 1 2 3 all )
freddurgan 5,549 43 04/27/05 04:40 PM
by freddurgan
* WARNING: MARIJUANA CAUSES PARANOIA!
( 1 2 all )
Scratcher 4,881 36 11/15/05 04:46 PM
by Microcosmatrix

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: Entire Staff
583 topic views. 8 members, 82 guests and 104 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2026 Mind Media. Some rights reserved.

Generated in 0.034 seconds spending 0.01 seconds on 16 queries.