473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Online Book Reservation (Any Idea?)

werks
220 100+
Hi,

Could someone give me an idea on how to create a "Reservation" for my Online Library Website..

tnx in advance ^^
Dec 28 '07 #1
11 2382
nathj
938 Expert 512MB
Hi,

Could someone give me an idea on how to create a "Reservation" for my Online Library Website..

tnx in advance ^^
Hi,
You shoukld start by deciding what data you want to store, and then what you need to be able to do with this data. When you have the data and associated methods sorted out you can think about the page layout.

It sounds like you may need to read some tutorials on PHP, MySQL at least and then maybe look at AJAX as it may be useful.

I recommedn you Google PHP Tuotrial and MySQL tutorial- the offerings from the W3C got me started.

Then when you have had a go simply post back with specific quetions. People are more helpful if you can show to have helped yourself first.

Cheers
nathj
Dec 28 '07 #2
werks
220 100+
Hi,
You shoukld start by deciding what data you want to store, and then what you need to be able to do with this data. When you have the data and associated methods sorted out you can think about the page layout.

It sounds like you may need to read some tutorials on PHP, MySQL at least and then maybe look at AJAX as it may be useful.

I recommedn you Google PHP Tuotrial and MySQL tutorial- the offerings from the W3C got me started.

Then when you have had a go simply post back with specific quetions. People are more helpful if you can show to have helped yourself first.

Cheers
nathj

Tnx for replying, I'll be using PHP and MySQL for my database but i can't seem to understand how the reservation of Books done..
Dec 30 '07 #3
nathj
938 Expert 512MB
Tnx for replying, I'll be using PHP and MySQL for my database but i can't seem to understand how the reservation of Books done..
Hi,

Well assuming you have user accounts for this and the books are displayed on the screen you could make the title of the book clickable. When clicking this title the user is taken to a page where they are informed that the book has been reserved for a certain period of time ready for their collection - or if you are posting it that they can expect the book in a set number of days.

Then, on this page use and UPDATE command in MySQL to update some fields against the book to indicate when the book was reserved, by whom, how long it will be reserved for and when it would be due back.

When you display the list of available books you can use this information to determine if a title should be clickable. If a boko is already reserved then it cannot be clicked but you display a piece of information next to it saying when it is available from.

Alternatively you could que reservations in a separate table.

There's a basic overview of how I would tackle this problem. Hopefully it's a enough to get you started on this task.

Cheers
nathj
Dec 31 '07 #4
lotus18
866 512MB
Hi,

Well assuming you have user accounts for this and the books are displayed on the screen you could make the title of the book clickable. When clicking this title the user is taken to a page where they are informed that the book has been reserved for a certain period of time ready for their collection - or if you are posting it that they can expect the book in a set number of days.
It shouldn't be user accounts. Probably, the term must be borrower accounts instead of user accounts.

Hi werks

There are many things you have to consider. For an instance the borrower, does it means that only the borrower can reserve the book? how about the guests? of course not. hehe... How do you plan to reserve the book? by borrower, or by manually reserved the book?

Then, on this page use and UPDATE command in MySQL to update some fields against the book to indicate when the book was reserved, by whom, how long it will be reserved for and when it would be due back.
In addition to his post, don't also forget to include sanction (maybe on a related table) for not returning the book on time. : )

Have a nice day!

Rey Sean
Jan 4 '08 #5
nathj
938 Expert 512MB
It shouldn't be user accounts. Probably, the term must be borrower accounts instead of user accounts.
Merely different words for the same thing. They are borrowers of books and users of the online reservation system. The words used are alomst irrelevant the point is that some way of handling those who use this system to reserv/borrow books must be implemented.

In addition to his post, don't also forget the include sanction (maybe on a related table) for not returning the book on time. : )
The idea of sacntions is very useful, and an idea had not ocnsidered. However, I would avoid using explicit relations in the MySQL database.

I'm interested to know how you are getting onwith this project as I have often thought of setting something like this up form extended family so that we can borrow each others books without having to physically traverse the country.

Cheers
nathj
Jan 4 '08 #6
lotus18
866 512MB

The idea of sacntions is very useful, and an idea had not ocnsidered. However, I would avoid using explicit relations in the MySQL database.
I have little knowledge in web programming, i have tried asp, php, and mysql as their backend. So how will you do it?


I'm interested to know how you are getting onwith this project as ....
I'm just visiting others forum : )

Rey Sean
Jan 4 '08 #7
nathj
938 Expert 512MB
I have little knowledge in web programming, i have tried asp, php, and mysql as their backend. So how will you do it?
Hi,

I would simply define each table with a primary key and then were necessary incolude this PK on other tables as an implicit FK. This way I can control what happens on uopdate and delete etc without worrying about what the data engine may do automatically for me. When using many-to-many relationships in a fully normalised data structure this level of control is essential.

I think that answers the question you were asking.

Cheers
nathj
Jan 4 '08 #8
lotus18
866 512MB
Hi,

I would simply define each table with a primary key and then were necessary incolude this PK on other tables as an implicit FK. This way I can control what happens on uopdate and delete etc without worrying about what the data engine may do automatically for me. When using many-to-many relationships in a fully normalised data structure this level of control is essential.

I think that answers the question you were asking.

Cheers
nathj
OK. I got it. The database structure must be in normalized form. Maybe I didn't got your point earlier. : )
Jan 4 '08 #9
nathj
938 Expert 512MB
OK. I got it. The database structure must be in normalized form. Maybe I didn't got your point earlier. : )
Hi,

Sure the DB must be normalised - if it's going to be of any real use normalisation is essential.

Cheers
nathj
Jan 4 '08 #10
lotus18
866 512MB
Hi,

Sure the DB must be normalised - if it's going to be of any real use normalisation is essential.

Cheers
nathj
Yes. You're right. Have a happy day!

Rey Sean
Jan 4 '08 #11
werks
220 100+
Hi,

Well assuming you have user accounts for this and the books are displayed on the screen you could make the title of the book clickable. When clicking this title the user is taken to a page where they are informed that the book has been reserved for a certain period of time ready for their collection - or if you are posting it that they can expect the book in a set number of days.

Then, on this page use and UPDATE command in MySQL to update some fields against the book to indicate when the book was reserved, by whom, how long it will be reserved for and when it would be due back.

When you display the list of available books you can use this information to determine if a title should be clickable. If a boko is already reserved then it cannot be clicked but you display a piece of information next to it saying when it is available from.

Alternatively you could que reservations in a separate table.

There's a basic overview of how I would tackle this problem. Hopefully it's a enough to get you started on this task.

Cheers
nathj
Hi,

Tnx for the reply nathj
Jan 5 '08 #12

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done...
5
by: KarlM | last post by:
Is there any sample code for making a DHCP reservation via C#? Thanks in advance
1
by: hiboo | last post by:
Does anyone know of any open source java software/code libraries for doing travel/airline reservations? I'm looking for a typical airline (hotel, car rental?) reservation system. system in perl or...
4
by: Jigar A. Thakor | last post by:
how to create online shopping website.. ?? any architecture ?? How to design any guidlines ? and what is verisign ?? other secure protection needed ?? i want to develop in C#,Asp.net,Sql Server...
11
by: jimmy | last post by:
I'm in the process of developing a reservation management system for small restaurants. I am stuck on creating an algorigthm for managing the reservations. For example i need to check that a table...
1
by: pop | last post by:
i am a student.i am studying engg...i want c/c++ source code for railway reservation system and online purchasing...... plz help buddies.........
30
by: marijnh | last post by:
A freely-available online book about JavaScript has just been launched: http://eloquentjavascript.net It attempts to provide a comprehensive introduction to the language, and a practical...
4
by: ritikakhanna | last post by:
hi, i want to make a project on online railway reservation in vb.net.this project is windows based.but i want to take this project on internet by making this project on windows .please tell me how...
0
by: lounar | last post by:
Does anyone has any idea how can i get an alert everytime an online resevation i made except e-mail alert? and if yes how... ;)
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.