The $SW in adding entry i get it from the previous page where user had to choose an item. i want to add entry into the table where the id is equal to the item that user had selected. umm so, at the previous page i used a joining of 3 tables. which is:
$q=mysql_query("select * from software_version left join version ON software_version.version_id = version.ID left join changelog ON software_version.ID = changelog.software_id where (version.product_id = '" . $FID . "')");
the $SW value is from changelog.software_id, But, how can i make it to take the ID from software table instead of the connected value from changelog??? i tried to use var=$line['software_version.ID']; but not working. does that mean that my joining of tables are wrong??
IF there are no datas in changelog table(which include the var $SW), then when user add entry, no sub_id is added to it, because it did not even read the value from the previous page.
hmm... i hope i do explain it clearly... thought its abit confusing...