PHP OOP

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,235
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 13, 2009

Simple MySql functions but in OOP

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (kdottz)

  • thanks BMCVET :)

  • Eclipse For PHP :)

    and thanks for the comment hehe

see all

All Comments (20)

Sign In or Sign Up now to post a comment!
  • Where is the polymorphism and inheritance? Not really oop as it could be done with functional programming. Also, putting the disconnection in the __destructor might be easier to read in the code logic as you could simply delete the object. I don't like the die() in the method, either. .A better implementation would be to have objects for different tables inheriting from a base (possibly abstract) object or interface. The child obs would specialise their behaviour and properties.

  • its a nice one for the beginners.. however, you can make it way better with some constructors/destrucors and, interface and static methods. futhermore, there is no reason to leave all the objects public

  • Cute, but not efficiant.

    private Driver, protected Connector extends Driver. public API extends Connector.

    If you can look throgh thism u have saves you a hole lot of time an money.

    (Driver handles DB and __construct. Connector handles DB-calls. API handles application and thereby I/O. !Is instantitated!)

  • OMG this code is beautiful! Thank you

  • @W4iCorky Mty bad, I missed a few things out like ") lol

  • @crohole

    var $insert

    $this->insert = mysql_query("INSERT INTO table (id,username,etc,etc) VALUE ($username,etc);

    Try something similar to that.

  • I´ve Tested, Realy works! Thanks for help me!

  • please show some examples to insert data and select data from a table

  • tes

  • Thanks.  Can I know, which editor you used?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more