Well, you set that variable a few lines earlier via:
You need to debug all the variables involved (echo their values) and see what's going on.
If the results are what you expect, then do the same thing for this line:
if(strcmp($row2['fullname'],$product_name1) == 0)
See how the variables are set, and confirm your logic for that "if" condition.