Ok fellas Thanks for everything. with your help (99%) I was able to figure it out (1%) :0). I know most of you don't like the Dreamweaver thing but I am on a time crunch and hand coding every inch doesn't help me to meet their deadlines.
Weedpacket redo of the code was great. The only thing I was doing wrong was I forgot to add "ECHO" in the
do
{
?>
<lom:keyword>
<lom:string language="en-US"><?php echo $keywords['Keywords']?></lom:string>
</lom:keyword>
<?php
} while($keywords=mysql_fetch_assoc($rsScorm2))
?>
I also had to make it a do while loop because the while loop did not show all the associated records.
The big thing I had to add "probalby a Dreamweaver thing" is this code
$colname_rsScorm2 = "-1";
if (isset($_GET['SCO_Description'])) {
$colname_rsScorm2 = (get_magic_quotes_gpc()) ? $_GET['SCO_Description'] : addslashes($_GET['SCO_Description']);
}
I know ya'll said I am calling this twice but DW will not access the DB without it.
Besides I am running this locally and not to the public. The purpose of this is to store the metadata for the ADL Registry of the SCORM 2004 course vise hand typing this for each course. Yes I know there are programs out there that already do this but the Big Bosses are not releasing any funds so I figured I'll make my own.
Again thanks this will help us save about 100 hours a month in man hours and put that time into doing some real development.
Here is the .xml out put i wanted
<?xml version="1.0" encoding="utf-8" ?>
<registryTransaction xmls="http://hdl.cordra.net/2000.2.1/ADL-R-Reg-T"
xmlns:lom="http://Itsc.ieee.org/xsd/LOM"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://Itsc.ieee.org/xsd/LOMhttp://hdl.cordra.net/2000.2/adlreg-lom?VData=version&id=1
http://hdl.cordra.net/2000.2.1/ADL-R-Reg-Thttp://hdl.cordra.net/2000.2.1/ADL-R-Reg-T?VData=version&=1">
<course_metadata>
<metadata>
<mod_title>Griffin</mod_title>
<lesson_title>BygMony</lesson_title>
<coi_num>990923</coi_num>
<version>1</version>
<!-- Look at it isn't it beautful-->
<lom:keyword>
<lom:string language="en-US">yankee</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="en-US">Avaya</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="en-US">Snowball</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="en-US">Windmill</lom:string>
</lom:keyword>
<lom:keyword>
<lom:string language="en-US">Cowboy</lom:string>
</lom:keyword>
<status>Green</status>
<sco_description>None.</sco_description>
<date_created>Nov 29, 2005</date_created>
<security_classification>Classified</security_classification>
<format>full</format>
<document>FOUO</document>
<interactivity_level>Category 1</interactivity_level>
<learning_resource_type>Web based</learning_resource_type>
<contribute>none</contribute>
<copyright>none</copyright>
<location>www.jfcom.mil</location>
<aggregation_level>6</aggregation_level>
<knowledge_type>Process</knowledge_type>
<terminal_learning_obj>none.</terminal_learning_obj>
</metadata>
</course_metadata>
</registryTransaction>
BygMony