ive removed the quotes and thats starting to look a lot better, i just need it to put the result ("exact") in place of the stock("3").
just to clarify, u dont want to display the quantity in the table, instead, you want it to be either exact, out of stock or In stock
for example,
A9190 SENSOR ASSY 90DEG 450MM 0233170500 TTC Exact
if this is the case, u might wanna concentrate on this part of ur code.
echo "<td width='20%'>".$result[stock]."</td>";
hint: u want this row to display Exact if $row = $qty.. so on n so forth..