http://qs321.pair.com?node_id=200630


in reply to Price updating script ideas

The problem is in how you structured your "if ($opcost = 0)" statement. when you declare "if ($opcost = 0)", you are actually setting the value of $opcost to zero, not checking it's value. try "if ($opcost == 0)" instead. the == is for comparison, the single "=" is for setting the variable.