Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source
Reply
  #1   IP: 89.40.93.139
Old 19th January 2009, 16:01
ciobancai's Avatar
ciobancai ciobancai is offline
Senior Member
 
Join Date: Mar 2008
Posts: 43
Default blackjack insert
I wanna to insert blackjack on fts 1.0.2 , have somebody the code ?
Reply With Quote
  #2   IP: 149.161.109.61
Old 29th January 2009, 15:33
Dragan3591's Avatar
Dragan3591 Dragan3591 is offline
Senior Member
 
Join Date: Oct 2008
United States
Posts: 168
Default
This is not my mod. All thanks goes to KrazyA1pha!

PHP Code:
ALTER TABLE `usersADD `bjwinsint(10NOT NULL default '0';
ALTER TABLE `usersADD `bjlossesint(10NOT NULL default '0'
Attached Files
File Type: php bjstats.php (4.4 KB, 30 views)
File Type: php blackjack.php (16.6 KB, 35 views)
__________________
CLICK HERE FOR IMPORTANT NEWS FROM BVLIST!!

"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut."
Ernest Hemingway.

"A positive attitude will not solve all your problems, but it will annoy enough people to make it worth the effort."
Herm Albright.
Reply With Quote
  #3   IP: 190.66.72.223
Old 3rd December 2009, 19:07
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
I get this error

Code:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in E:\xampp\htdocs\blackjack.php on line 26
[0] in function mysql_fetch_assoc in E:\xampp\htdocs\blackjack.php on line 26

Warning: Cannot modify header information - headers already sent by (output started at E:\xampp\htdocs\include\init.php:124) in E:\xampp\htdocs\include\functions.php on line 1107
[0] in function header in E:\xampp\htdocs\include\functions.php on line 1107
[1] in function stdhead in E:\xampp\htdocs\include\libs\format\format_functions.php on line 93
[2] in function stderr in E:\xampp\htdocs\blackjack.php on line 64
I,ll appreciate some help,
thanks in advance,
Reply With Quote
  #4   IP: 213.51.101.160
Old 3rd December 2009, 20:31
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
Put this into the database

PHP Code:
CREATE TABLE `blackjack` (
  `
useridint(11NOT NULL default '0',
  `
pointsint(11NOT NULL default '0',
  `
statusenum('playing','waiting'collate latin1_german1_ci NOT NULL default 'playing',
  `
cardstext collate latin1_german1_ci NOT NULL,
  `
datedatetime NOT NULL default '0000-00-00 00:00:00',
  
PRIMARY KEY  (`userid`)
ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
PHP Code:
CREATE TABLE `cards` (
  `
idint(11NOT NULL auto_increment,
  `
pointsint(11NOT NULL default '0',
  `
pictext collate latin1_german1_ci NOT NULL,
  
PRIMARY KEY  (`id`)
ENGINE=MyISAM AUTO_INCREMENT=53 DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci AUTO_INCREMENT=53 
And finally

PHP Code:
INSERT INTO `cardsVALUES (12'2p.bmp');
INSERT INTO `cardsVALUES (23'3p.bmp');
INSERT INTO `cardsVALUES (34'4p.bmp');
INSERT INTO `cardsVALUES (45'5p.bmp');
INSERT INTO `cardsVALUES (56'6p.bmp');
INSERT INTO `cardsVALUES (67'7p.bmp');
INSERT INTO `cardsVALUES (78'8p.bmp');
INSERT INTO `cardsVALUES (89'9p.bmp');
INSERT INTO `cardsVALUES (910'10p.bmp');
INSERT INTO `cardsVALUES (1010'vp.bmp');
INSERT INTO `cardsVALUES (1110'dp.bmp');
INSERT INTO `cardsVALUES (1210'kp.bmp');
INSERT INTO `cardsVALUES (131'tp.bmp');
INSERT INTO `cardsVALUES (142'2b.bmp');
INSERT INTO `cardsVALUES (153'3b.bmp');
INSERT INTO `cardsVALUES (164'4b.bmp');
INSERT INTO `cardsVALUES (175'5b.bmp');
INSERT INTO `cardsVALUES (186'6b.bmp');
INSERT INTO `cardsVALUES (197'7b.bmp');
INSERT INTO `cardsVALUES (208'8b.bmp');
INSERT INTO `cardsVALUES (219'9b.bmp');
INSERT INTO `cardsVALUES (2210'10b.bmp');
INSERT INTO `cardsVALUES (2310'vb.bmp');
INSERT INTO `cardsVALUES (2410'db.bmp');
INSERT INTO `cardsVALUES (2510'kb.bmp');
INSERT INTO `cardsVALUES (261'tb.bmp');
INSERT INTO `cardsVALUES (272'2k.bmp');
INSERT INTO `cardsVALUES (283'3k.bmp');
INSERT INTO `cardsVALUES (294'4k.bmp');
INSERT INTO `cardsVALUES (305'5k.bmp');
INSERT INTO `cardsVALUES (316'6k.bmp');
INSERT INTO `cardsVALUES (327'7k.bmp');
INSERT INTO `cardsVALUES (338'8k.bmp');
INSERT INTO `cardsVALUES (349'9k.bmp');
INSERT INTO `cardsVALUES (3510'10k.bmp');
INSERT INTO `cardsVALUES (3610'vk.bmp');
INSERT INTO `cardsVALUES (3710'dk.bmp');
INSERT INTO `cardsVALUES (3810'kk.bmp');
INSERT INTO `cardsVALUES (391'tk.bmp');
INSERT INTO `cardsVALUES (402'2c.bmp');
INSERT INTO `cardsVALUES (413'3c.bmp');
INSERT INTO `cardsVALUES (424'4c.bmp');
INSERT INTO `cardsVALUES (435'5c.bmp');
INSERT INTO `cardsVALUES (446'6c.bmp');
INSERT INTO `cardsVALUES (457'7c.bmp');
INSERT INTO `cardsVALUES (468'8c.bmp');
INSERT INTO `cardsVALUES (479'9c.bmp');
INSERT INTO `cardsVALUES (4810'10c.bmp');
INSERT INTO `cardsVALUES (4910'vc.bmp');
INSERT INTO `cardsVALUES (5010'dc.bmp');
INSERT INTO `cardsVALUES (5110'kc.bmp');
INSERT INTO `cardsVALUES (521'tc.bmp'); 
Reply With Quote
  #5   IP: 190.66.72.223
Old 4th December 2009, 03:08
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
Thank you edgein but when I put the last php code it says:

sorry for the inconvenience, but, do you know how can I fix the problem with Blackjack
when I submit query:

[code]Query:
INSERT INTO `cards` VALUES (1, 2,
Reply With Quote
  #6   IP: 213.51.101.160
Old 4th December 2009, 10:08
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
just add the querry in to the data base
thats all
Reply With Quote
  #7   IP: 190.66.72.223
Old 4th December 2009, 22:14
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default I followed your instructions but...
I,m afraid when I submit the query, the system says:

PHP Code:
Query FailedYou have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '; INSERT INTO `cards` VALUES (2, 3, '3p.bmp'); INSERT INTO `cards` VALUES (3, ' at line 1 
any ideas?

thanks in advance
Reply With Quote
  #8   IP: 213.51.101.160
Old 5th December 2009, 21:28
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
add only this into the sql querie box


PHP Code:
INSERT INTO `cardsVALUES (12'2p.bmp');
INSERT INTO `cardsVALUES (23'3p.bmp');
INSERT INTO `cardsVALUES (34'4p.bmp');
INSERT INTO `cardsVALUES (45'5p.bmp');
INSERT INTO `cardsVALUES (56'6p.bmp');
INSERT INTO `cardsVALUES (67'7p.bmp');
INSERT INTO `cardsVALUES (78'8p.bmp');
INSERT INTO `cardsVALUES (89'9p.bmp');
INSERT INTO `cardsVALUES (910'10p.bmp');
INSERT INTO `cardsVALUES (1010'vp.bmp');
INSERT INTO `cardsVALUES (1110'dp.bmp');
INSERT INTO `cardsVALUES (1210'kp.bmp');
INSERT INTO `cardsVALUES (131'tp.bmp');
INSERT INTO `cardsVALUES (142'2b.bmp');
INSERT INTO `cardsVALUES (153'3b.bmp');
INSERT INTO `cardsVALUES (164'4b.bmp');
INSERT INTO `cardsVALUES (175'5b.bmp');
INSERT INTO `cardsVALUES (186'6b.bmp');
INSERT INTO `cardsVALUES (197'7b.bmp');
INSERT INTO `cardsVALUES (208'8b.bmp');
INSERT INTO `cardsVALUES (219'9b.bmp');
INSERT INTO `cardsVALUES (2210'10b.bmp');
INSERT INTO `cardsVALUES (2310'vb.bmp');
INSERT INTO `cardsVALUES (2410'db.bmp');
INSERT INTO `cardsVALUES (2510'kb.bmp');
INSERT INTO `cardsVALUES (261'tb.bmp');
INSERT INTO `cardsVALUES (272'2k.bmp');
INSERT INTO `cardsVALUES (283'3k.bmp');
INSERT INTO `cardsVALUES (294'4k.bmp');
INSERT INTO `cardsVALUES (305'5k.bmp');
INSERT INTO `cardsVALUES (316'6k.bmp');
INSERT INTO `cardsVALUES (327'7k.bmp');
INSERT INTO `cardsVALUES (338'8k.bmp');
INSERT INTO `cardsVALUES (349'9k.bmp');
INSERT INTO `cardsVALUES (3510'10k.bmp');
INSERT INTO `cardsVALUES (3610'vk.bmp');
INSERT INTO `cardsVALUES (3710'dk.bmp');
INSERT INTO `cardsVALUES (3810'kk.bmp');
INSERT INTO `cardsVALUES (391'tk.bmp');
INSERT INTO `cardsVALUES (402'2c.bmp');
INSERT INTO `cardsVALUES (413'3c.bmp');
INSERT INTO `cardsVALUES (424'4c.bmp');
INSERT INTO `cardsVALUES (435'5c.bmp');
INSERT INTO `cardsVALUES (446'6c.bmp');
INSERT INTO `cardsVALUES (457'7c.bmp');
INSERT INTO `cardsVALUES (468'8c.bmp');
INSERT INTO `cardsVALUES (479'9c.bmp');
INSERT INTO `cardsVALUES (4810'10c.bmp');
INSERT INTO `cardsVALUES (4910'vc.bmp');
INSERT INTO `cardsVALUES (5010'dc.bmp');
INSERT INTO `cardsVALUES (5110'kc.bmp');
INSERT INTO `cardsVALUES (521'tc.bmp'); 
it works great by me
Reply With Quote
Reply

Tags
blackjack , insert

Thread Tools

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 Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
insert sql data via tracker settings russellhearn69 Template Shares 2 20th January 2010 10:40
Casino-Blackjack Help scream21m Template Shares 4 23rd December 2009 22:01
How to insert? szaby TBDev 2 20th September 2009 22:48



All times are GMT +2. The time now is 03:50. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2019, vBulletin Solutions Inc.