# CSS to style PHP booking page with data from a MySQL query)

**URL:** <https://forum.kirupa.com/t/css-to-style-php-booking-page-with-data-from-a-mysql-query/276254>\
**Category:** programming\
**Created:** [November 25, 2008, 12:46am UTC](https://forum.kirupa.com/t/css-to-style-php-booking-page-with-data-from-a-mysql-query/276254 "2008-11-25T00:46:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chilakilez](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@chilakilez](https://forum.kirupa.com/u/chilakilez)\
**Post date:** [November 25, 2008, 12:46am UTC](https://forum.kirupa.com/t/css-to-style-php-booking-page-with-data-from-a-mysql-query/276254/1 "2008-11-25T00:46:04Z")

</div>

I’ve been browsing trough the internet for 2 days now and i cant find an answer to my question, basically, this is what i am doing:

Im creating a php appointment booking page, where the clients of my client would do online reservations and check wheter a day is available or not… The problem is that the visual side should be quite appealing, so i;m looking for a way to do it wihout doing it in flash.  
THe php file should check from a MySQL database if the dates are available or not, and the user should click on the date to proceed with payment and stuff…  
How can i apply styles to each of the cells? (well not each, but the available, not available ones and so on), is there a way to create a jpeg and make php output these jpegs as buttons for each of the days? or CSS can do it? Anyone could point in the direction of a good tutorial for this?, im basically just wondering how to apply styles to specific cells of the “calendar/booking thingy”.  
Thanks in advance
