Hey!
here were some bugs, i fixed em, and now the shop will be the normal adopt.php :D
the fixed version can be seen at:
http://miromotel.0fees.net/adoptables/adopt.php
Im to lazy to explain all code so ill just put the files in a zip and show the SQL
NOTE: YOUR CURRENCY MUST BE NAMED "coins" OR IT WONT WORK!
SQL including users:
PHP Code:
CREATE TABLE IF NOT EXISTS `adopts_adoptables` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` varchar(40) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL,
`eggimage` varchar(120) DEFAULT NULL,
`whenisavail` varchar(50) DEFAULT NULL,
`promocode` varchar(50) DEFAULT NULL,
`freqcond` varchar(50) DEFAULT NULL,
`number` int(11) DEFAULT NULL,
`datecond` varchar(50) DEFAULT NULL,
`date` varchar(20) DEFAULT NULL,
`adoptscond` varchar(20) DEFAULT NULL,
`moreless` varchar(20) DEFAULT NULL,
`morelessnum` int(11) DEFAULT NULL,
`levelgrle` varchar(25) DEFAULT NULL,
`grlelevel` int(11) DEFAULT NULL,
`alternates` varchar(10) DEFAULT NULL,
`altoutlevel` int(11) DEFAULT NULL,
`altchance` int(11) DEFAULT NULL,
`price` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
CREATE TABLE IF NOT EXISTS `adopts_users` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL,
`email` varchar(60) DEFAULT NULL,
`usergroup` int(11) DEFAULT NULL,
`newmessagenotify` varchar(10) DEFAULT NULL,
`membersince` varchar(20) DEFAULT NULL,
`isbanned` int(11) DEFAULT NULL,
`website` varchar(80) DEFAULT NULL,
`profilepic` varchar(80) DEFAULT NULL,
`aim` varchar(80) DEFAULT NULL,
`yahoo` varchar(80) DEFAULT NULL,
`msn` varchar(80) DEFAULT NULL,
`coins` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`uid`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
Okay now the files:
ATTACHED FILES IN ZIP:
adopt.php
doadopt.php
admin.php
nadopt.php
levelup.php (gives at levelup random between 100 and 200 coins)
Hope u guys like it :D
(for admin.php, only changed function is new (new adopt) for ppl who have other stuff in it)