in reply to my if statement is not working?!

Try to reduce your code to a short example that we can run and demonstrates the problem you are having. In fact, in this case all you really needed to give us was if(($new_flag =1)! If you'd have tried to give us a short sample using that line chances are you'd have found the problem yourself.


True laziness is hard work