This is one option:
[code=php]if(!$insert){
die("There's little problem: ".mysql_error() );
}
require "thankyou.h tm";[/code]...
User Profile
Collapse
-
I'm trying to do something following: I have more classes (10+) related to the tables in database. Those classes are extendnig base class called Object which implements global methods like Load(), Save(), Delete(). This problem is especially while using Delete() because I have to delete not only a row in one table, but also every row in other tables which depend on the deleted row.
So i decided to create static variable $dependent_clas ses...Leave a comment:
-
Iterated calling static variables from different classes
Hi,
I have a small problem:
I'd like to call static variables from different classes - their names are stored in an array. Example of a class:
[code=php]class MyClass1{
public static $mysql_table = "table1";
}[/code]
Now I would like to do something like this:
[code=php]$classes=array( "MyClass1","MyC lass2","MyClass 3");
foreach ($classes as $item)...
No activity results to display
Show More
Leave a comment: