#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    7
    Rep Power
    0
    Dear everybody,

    I am developing a new version of PhpDB, which will support most database universally including MySQL, Oracle, Sybase, Microsoft SQL Server, ODBC ....
    I would like to do some feature very much like ASP/ADO in my PhpDB, for example:

    $rs = new RecordSet();
    $sql = "SELECT f1 FROM xxx ";
    $rs->open( $sql, "server=xxx;driver=mysql;database=xxx");
    echo $rs["f1"];
    echo $rs->fields["f1"];
    echo $rs->fields["f1"]->value;

    The output yields same result even according to different programming style.

    PhpDB also need to support the following programming style:

    $sql = "SELECT f1, f2, f3 FROM table1 WHERE f4=yyy";
    $rs->open( $sql, "server=xxx;driver=mysql;database=xxx");
    $rs["f1"] = "hello";
    $rs["f2"] = "hello 2";
    $rs["f3"] = "hello 3";
    $rs->update();

    What i know to accomplish such feature, the language should support default property in OOP (like Delphi), operator
    overloading (like C++), collection (like VB).

    When php will provide such feature?


    Thank you.


    William Ng.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    See,, you can create the class files and intilize that in your php program.So you can use the script like what you have mentioned earlier.

    you can find out some good article in phpbuilder.com regarding classes in php



    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. Replies: 2
    Last Post: August 18th, 2004, 11:45 PM
  2. Replies: 4
    Last Post: January 28th, 2004, 09:29 AM
  3. PHP with UnixODBC
    By coder4hire in forum PHP Development
    Replies: 2
    Last Post: January 20th, 2004, 02:14 PM
  4. Passing string from PHP to Javascript
    By ka8oad in forum JavaScript Development
    Replies: 4
    Last Post: January 17th, 2004, 04:12 PM
  5. UnixODBC + PHP + Apache + Empress
    By coder4hire in forum Database Management
    Replies: 0
    Last Post: January 15th, 2004, 02:41 PM

IMN logo majestic logo threadwatch logo seochat tools logo