Author Topic: Showing Table Data  (Read 290 times)

Jacob Armstrong

  • Guest
Showing Table Data
« on: June 26, 2010, 09:30:46 PM »
I'm the CEO and President of a Virtual Airline. (A non-profit organization where people come together and fly on a simulator such as Microsoft Flight Simulator.) I have a table:
PHP Code: [Select]
 
CREATE TABLE 
IF NOT EXISTS `pireps` (
 
`
IDint(11NOT NULL auto_increment,
  
`
PilotIDvarchar(7collate latin1_general_ci NOT NULL,
  
`
Flight#varchar(7collate latin1_general_ci NOT NULL,
  
`
Fromvarchar(4collate latin1_general_ci NOT NULL,
  
`
Tovarchar(4collate latin1_general_ci NOT NULL,
  
`
Fueldecimal(10,0NOT NULL,
  
`
FlightTimedecimal(10,0NOT NULL,
  
`
Aircraftvarchar(50collate latin1_general_ci NOT NULL,
  
`
Commentsvarchar(500collate latin1_general_ci default NULL,
  
`
Acceptedint(1NOT NULL default '0',
  
`
Pendingint(1NOT NULL default '1',
  
`
Deniedint(1NOT NULL default '0',
  
PRIMARY KEY  (`ID`)
ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=;
 

and I'm worndering how to show the PIREP's (PIlot REPorts) that are relivent to that pilot only. I hope that I don't sound to confusing. Thanks for the help in advance. I also have a lot more things, but this is mostly the major one.

daveismyname

  • Senior Member
  • ****
  • Posts: 204
  • Karma: +1/-0
  • PHP Helper
    • View Profile
    • Dave is my name
Re: Showing Table Data
« Reply #1 on: July 01, 2010, 07:48:43 AM »
to show information for a certain pilot use their pilotID to identify the particular pilot.