User Profile

Collapse

Profile Sidebar

Collapse
juro
juro
Last Activity: Jul 20 '07, 11:19 AM
Joined: Jul 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • juro
    replied to How can I redirect to "Thank You" page?
    in PHP
    This is one option:
    [code=php]if(!$insert){
    die("There's little problem: ".mysql_error() );
    }

    require "thankyou.h tm";[/code]...
    See more | Go to post

    Leave a comment:


  • 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...
    See more | Go to post

    Leave a comment:


  • juro
    started a topic Iterated calling static variables from different classes
    in PHP

    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)...
    See more | Go to post
No activity results to display
Show More
Working...