一个重新载入页面的问题
The situation is:
In a project, 3 php forms, assume, denoted as A, B, C
Page A has two buttons, and an inline frame.
1 button to load Page B to the iframe, another button to load Page C to the inline frame.
Originally, the form name of A is Unit1, the form name of B is also Unit2.
Load Page A first, then load Page B would induce error.
So, rename Unit1 to be UnitA, Unit2 to be UnitB.
Then, load A OK, load B OK. But then load A again, it can show the page but lost all StyleSheet formatting. (Info.: Page A hasn't any db operation. The StyleSheet is loaded by the StyleSheet component)
Then load B again, failed. It returns:
Fatal error: Call to a member function Close() on a non-object in C:\Documents and Settings\B\My Documents\Delphi for PHP Projects\reon1\admin\Item_category.php on line 44
Page B has db operation at the page onshow event. Seems the error same as my previous question post, the error when run the query two times by a button.
Any idea?? Thank you very much.