-   Linux - Software (
-   -   PHP Assistance, please help!! (

conesh 02-11-2009 10:44 AM

PHP Assistance, please help!!
Hi, I'm running a fedora core 9 with php but I'm not sure how to create the database interaction for my dad so I hope you can Help me.

We would like to create an appointment database, with php and mysql, those programs right now are up and running.

We want to create a database for his patients (he is a doctor),
but the reason of this database is because we want to let them take their appointments on their own.

But I don't know how to create the web page that shows only the working hours, and when the customer sign up for that time then the we page won't show that time.

Here's an example.

monday 14/02/09

4:00 pm available
5:00 pm available
6:00 pm available

The customer takes the 5:00 pm

4:00 pm available
5:00 pm not available
6:00 pm available

we want to create a link to the registration.

I just need assistance with the time schedule, we have the registration database.

I mean the way we can handle the information and the display of it.

Thanks for your help.

paulsm4 02-11-2009 12:40 PM

Hi -

You need to take "baby steps". I'd strongly urge you to buy a book, and work through one or two PHP/MySQL tutorials.

Here are a couple of suggestions:

"Teach yourself PHP, MySQL and Apache in 24 Hours", Julie C. Meloni
<= Silly title ... great book
<= You can find thousands more on-line tutorials...
... possibly even on your own ISP

'Hope that helps .. PSM

arizonagroovejet 02-11-2009 12:59 PM

You may also do better to seek assistance on a PHP forum. If you problem was about getting PHP working on Linux then this forum would be a good place to seek help but what you're trying to do is write PHP code and that's an entirely different type of problem.
One such forum can be found at

servat78 02-12-2009 08:34 PM

Start out with the database design. Have a flag within the schedules table that signals if that specific timeslot is available or not. The PHP script will then query for open timeslots only when displaying these.

If this is really a real project, then consider outsourcing it to some coder site. If it's a pet project to help your father, then gather tutorials on MySQL and PHP to be equipped to make an impression. You will need to deal withdata maintenance (backup, removing old/outdated entries, keeping patient logins, etc) - this can be a lot of work.


frieza 02-12-2009 08:46 PM

you might also find an open source php script that has already does this
a quick search turned up this
see if that helps

conesh 02-15-2009 06:30 PM

Thanks to everyone, I will do it my self its just a pet proyect and I would like lo learn.

Have a great day, I will keep you posted.

All times are GMT -5. The time now is 05:21 PM.