1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php source code for borrowing books

Discussion in 'PHP & Perl' started by arang67, May 22, 2012.

  1. arang67

    arang67 Registered Member

    Joined:
    Feb 14, 2012
    Messages:
    90
    Likes Received:
    28
    Occupation:
    businessman
    Location:
    somewhere
    Home Page:
    hye all

    i have to make an assignment php for borrowing and retung books like online library

    where can i get the sample?

    if anyone can help i can give backlinks to your site
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    How about you actually work your way to it? Getting good at programming will actually help you make money, don't be a lazy ass. ;)
     
    • Thanks Thanks x 2
  3. rendesr

    rendesr Junior Member

    Joined:
    Jan 15, 2012
    Messages:
    122
    Likes Received:
    95
    Yah, don't be a scrote - do your homework.

    Think about breaking the problem down. You'll want to do this object oriented. Start thinking about a 'book' class.
    It will have attributes such as Title, Author, ISBN, Purchase Date etc
    It will have functions such as 'bookOut' and 'bookIn' which will model behavior of the object (i.e. when people borrow it and return it)

    Then think about a 'Customer' class, which will have stuff like Name, Phone Number, Address etc

    Once you start modelling the components you need (i.e. information you need to store) you'll need to think about the behavior of these objects (i.e. a book can be AVAILABLE, ON LOAN, MISSING etc, a customer can be ACTIVE, OVER LIMIT etc). You can start designing your system on a piece of paper, by creating an object oriented design, as well as a database schema.
     
    • Thanks Thanks x 1
  4. arang67

    arang67 Registered Member

    Joined:
    Feb 14, 2012
    Messages:
    90
    Likes Received:
    28
    Occupation:
    businessman
    Location:
    somewhere
    Home Page:
    Yah, don't be a scrote - do your homework.

    Think about breaking the problem down. You'll want to do this object oriented. Start thinking about a 'book' class.
    It will have attributes such as Title, Author, ISBN, Purchase Date etc
    It will have functions such as 'bookOut' and 'bookIn' which will model behavior of the object (i.e. when people borrow it and return it)

    Then think about a 'Customer' class, which will have stuff like Name, Phone Number, Address etc

    Once you start modelling the components you need (i.e. information you need to store) you'll need to think about the behavior of these objects (i.e. a book can be AVAILABLE, ON LOAN, MISSING etc, a customer can be ACTIVE, OVER LIMIT etc). You can start designing your system on a piece of paper, by creating an object oriented design, as well as a database schema.

    thanks bro about your advice..imjust getting fedup with this..im taking subject in php..just need someone can fix my coding :)