Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
My First Release (Lottery System)
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xXTrevXx" data-source="post: 426260" data-attributes="member: 65272"><p>This is for RevCMS, im using Micro's version of Rev, so you may need to add/take away a few things to get it to work 100%</p><p></p><p>Add Lottery.php, to your main skin folder, with all your pages in it., also add this page to your navigator</p><p>Add the lottery2.php anywhere you want really (set this to run every days, or however often you want to pick winners, using either task scheduler, or some other way to run this based on time. or even manually if you want, so you can see the little bit of output.) i recommend looking at the lotto2 file, and seeing how it works.</p><p></p><p>lotto page</p><p><a href="http://prntscr.com/hz2hjz" target="_blank">http://prntscr.com/hz2hjz</a></p><p><a href="http://prntscr.com/hz3a5d" target="_blank">http://prntscr.com/hz3a5d</a></p><p></p><p></p><p>output page:</p><p><a href="http://prntscr.com/hz2mmw" target="_blank">http://prntscr.com/hz2mmw</a></p><p><a href="http://prntscr.com/hz39sc" target="_blank">http://prntscr.com/hz39sc</a></p><p></p><p></p><p>[SPOILER="lotto.zip"]<a href="https://mega.nz/#!B5IkiJ6b!BB7C-OSOn2xEUI0W623-oxlMOdo_m1NQs5y1ph53eqc" target="_blank">https://mega.nz/#!B5IkiJ6b!BB7C-OSOn2xEUI0W623-oxlMOdo_m1NQs5y1ph53eqc</a>[/SPOILER]</p><p></p><p>and you need to add a few tables to your database:</p><p>[SPOILER="sql"]</p><p>[CODE]CREATE TABLE `lotto` (</p><p> `username` varchar(50) NOT NULL,</p><p> `value` varchar(4) NOT NULL,</p><p> `winner` int(1) NOT NULL DEFAULT '0',</p><p> `winning_numbers` varchar(4) NOT NULL</p><p>) ENGINE=InnoDB DEFAULT CHARSET=latin1;</p><p></p><p>CREATE TABLE `lotto_winners` (</p><p> `username` varchar(30) NOT NULL,</p><p> `time` varchar(100) DEFAULT 'CURDATE()',</p><p> `winning_number` varchar(4) NOT NULL</p><p>) ENGINE=InnoDB DEFAULT CHARSET=latin1;</p><p>COMMIT;</p><p></p><p>[/CODE]</p><p>[/SPOILER]</p><p></p><p>plus, you need to edit the first lines in BOTH of the files, to config to your database, or just replace it with your include_once of your connection.php, if you already use mysqli, and already import your database connection</p></blockquote><p></p>
[QUOTE="xXTrevXx, post: 426260, member: 65272"] This is for RevCMS, im using Micro's version of Rev, so you may need to add/take away a few things to get it to work 100% Add Lottery.php, to your main skin folder, with all your pages in it., also add this page to your navigator Add the lottery2.php anywhere you want really (set this to run every days, or however often you want to pick winners, using either task scheduler, or some other way to run this based on time. or even manually if you want, so you can see the little bit of output.) i recommend looking at the lotto2 file, and seeing how it works. lotto page [URL]http://prntscr.com/hz2hjz[/URL] [URL]http://prntscr.com/hz3a5d[/URL] output page: [URL]http://prntscr.com/hz2mmw[/URL] [URL]http://prntscr.com/hz39sc[/URL] [SPOILER="lotto.zip"][URL]https://mega.nz/#!B5IkiJ6b!BB7C-OSOn2xEUI0W623-oxlMOdo_m1NQs5y1ph53eqc[/URL][/SPOILER] and you need to add a few tables to your database: [SPOILER="sql"] [CODE]CREATE TABLE `lotto` ( `username` varchar(50) NOT NULL, `value` varchar(4) NOT NULL, `winner` int(1) NOT NULL DEFAULT '0', `winning_numbers` varchar(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `lotto_winners` ( `username` varchar(30) NOT NULL, `time` varchar(100) DEFAULT 'CURDATE()', `winning_number` varchar(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; COMMIT; [/CODE] [/SPOILER] plus, you need to edit the first lines in BOTH of the files, to config to your database, or just replace it with your include_once of your connection.php, if you already use mysqli, and already import your database connection [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
My First Release (Lottery System)
Top