[ create a new paste ] login | about

Link: http://codepad.org/aqzj2TJh    [ raw code | output | fork ]

PHP, pasted on Jun 25:
<?

define("TABLE_PREFIX", "TEST_");

class Test {

    private static $sql_query = "select * from ".TABLE_PREFIX."USER";

    public static function show_query1() {
        echo "My first test";
        echo self::$sql_query;
    }

    public static function show_query2() {
        echo "My second test";
        echo self::$sql_query;
    }

}


Test::show_query1();
Test::show_query2();

?>


Output:
1
2

Parse error: syntax error, unexpected '.', expecting ',' or ';' on line 7


Create a new paste based on this one


Comments: