PHP Code:
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 30, 2013 at 08:44 PM
-- Server version: 5.1.44
-- PHP Version: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `script`
--
-- --------------------------------------------------------
--
-- Table structure for table `rooms`
--
CREATE TABLE IF NOT EXISTS `rooms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`room_name` varchar(200) NOT NULL,
`room_desc` text NOT NULL,
`room_model` int(11) NOT NULL,
`owner` varchar(200) NOT NULL,
`on_room` int(11) NOT NULL,
`rate` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `rooms`
--
INSERT INTO `rooms` (`id`, `room_name`, `room_desc`, `room_model`, `owner`, `on_room`, `rate`) VALUES
(1, 'Testing', 'Just few tests!!!', 1, 'Droppy', 0, 0),
(2, 'Few Promotions', 'Testing!!', 1, 'Droppy', 16, 0),
(3, 'Navigator Base...', 'I think is alright... Do you?', 1, 'Droppy', 70, 0),
(4, 'Look is Working!', 'But remember: That is just a BASE!', 1, 'Droppy', 26, 0),
(5, 'Hello', 'Testing', 0, 'Droppy', 10, 5);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(200) NOT NULL,
`password` text NOT NULL,
`credits` int(11) NOT NULL,
`pixels` int(11) NOT NULL,
`look` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `credits`, `pixels`, `look`) VALUES
(1, 'Papercup', '123321', 100000, 100, 'hr-893-31.hd-180-1.ch-878-82-62.lg-275-65.sh-295-64.he-1601,s-0.g-1.d-3.h-3.a-0'),
(2, 'Droppy', '123321', 45500, 100, 'hr-893-42.hd-209-1.ch-3111-64-62.lg-285-64.sh-906-64.ea-1406,s-0.g-1.d-3.h-3.a-0');
Because it uses sessions you need to access it like,