}
if ($prodid > 0) {
$SQLQuery = "SELECT productcode, productname, sector, producttype, glh, level, weightingfactor, lscqualificationcode, accreditationstartdate, accreditationenddate, certificationenddate, fundingtype, replaces, minimumentryage, productinactive, dateinactive, underdevelopment, targetgroup, possibleprogressionroute, additionalinformation, noofmandunitrqd, noofoptunitrqd, feecode, publishtowebsite, internalassessment, externalassessment, infoforprocessing FROM tblproducts
WHERE productuniqueid = $prodid";
$Result = mysql_query($SQLQuery);
while ($Row = mysql_fetch_array($Result)) {
$prodid = $Row["id"];
$productcode = $Row["productcode"];
$productname = $Row["productname"];
$sector = $Row["sector"];
$producttype = $Row["producttype"];
$glh = $Row["glh"];
$level = $Row["level"];
$weightingfactor = $Row["weightingfactor"];
And the list goes on from here...
I also have a hidden field at the bottom of my page :
<input name="prodid" type="hidden" value="<?php echo $prodid; ?>">
Is this helping?
I have tried allsorts of changes, but each time I either get all Units for all of my products, or a mysql error referring to fetch arrays..