This is a database and I am confused a bit.
table orgs
field org field description
104444 Finance
104445 IT
104446 HR
$Link = mysql_connect ($Host, $User, $Password) or die ("The database connection could not be established!");
$query = "SELECT * From orgs";
$result = mysql_db_query($DBName, $query, $Link) or die('Could not complete database query' . mysql_error());
while ($row = mysql_fetch_array($result)) {
$description = $row['description'];
$org = $row['org'];
}
I now have the values of org and description
what next - is this looking somewhat correct
$array = array("org" => $org, "description" => $description);
I now output the org info associated with an item from a second table and a second sql query
HTML OUTPUT BELOW
Name Location Service Tag Model Year Leased
user1 104410 JH3T631 Optiplex GX260 2003
I want to add the descprtion info from the org table as well as keep the org code already displayed.
Thanks,
Stan