I'm using MySql and I want it to display the users active pet and user when they log in on every page at the side.
EDIT: and put it in a varible so i can display it when i need it. This is the db structure for the pet table. Big code coming!
#
Table structure for table petgamex_pets
#
CREATE TABLE petgamex_pets (
id int(3) NOT NULL auto_increment,
name varchar(12) NOT NULL default 'You don''t ha',
power int(3) NOT NULL default '0',
defence int(3) NOT NULL default '0',
wisdom int(3) NOT NULL default '0',
speed int(3) NOT NULL default '0',
hit_points int(3) NOT NULL default '0',
image_path longtext NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
#
Dumping data for table petgamex_pets
#
INSERT INTO petgamex_pets VALUES (1, 'Chaos', 3, 3, 3, 3, 10, 'http://www.blueflameheaven.com/petgamex/images/pets/pet1.gif');