mysql - Control not entering into PHP class file -


I'm calling a class that does not execute any of its following files (db-com. ):

  echo "enter db-com.php"; Class DBCOM holds the {/ ** * @ wise string query string. * If the blank manufacturer is used, then be sure to use parametrized functions * / var $ queryString; / ** * @WAR Resource MySQL_query function catches the MySQL resource returned by the / var $ queryResult; / ** * @ sar array holds the entire array of results * / var $ queryArray; Function __ conversion () {$ this- & gt; Query string = $ this- & gt; Query sage = $ this- & gt; Query = ''; } Function __ conversion ($ qS) {$ this- & gt; Query string = $ qS; $ This- & gt; Queryaristult = mysql_query ($ this-> query string); $ This- & gt; Query array = ''; } / ** * * * Routine array contains an array containing all elements of the requested query. * / Function get_query_array () {if ($ this- & gt; query string == '' || $ this-> query string == "") {dead ("query string is empty. I = 0; $ fetchedArray = mysql_fetch_array ($ this-> query sage); $ i ++) {$ this-> query array [$ i] = $ fetched;} $ this- & quot; queryArray; }}  

When I write another file:

  is required ('some_path / db-com.php');  

It also does not enter this file, ie the first echo statement is not displayed.

This type of class involving SQL functions, I also started a clean blank file, first tested whether it enters control or not (it did) and then it was written all , It was saved under a different name, and it was included, and then this mysterious error got out.

Where did I go wrong?

You have two __ constric () though Area you can not overload methods such as PHP.

You probably do not see the error message:

Fatal error: Can not refinance DBCOM: : __ Construction () in C: \ test.php on line 23


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -