Hi,
I am new to PHP. I have a PHP calendar Script on a site that I am designing that uses a MySql database. My client would like for the events that have been listed on the calendar to be seen on the Home Page of the site. For example, on the right hand side of the page there is a division already coded in the CSS. I want to list the events from the calendar page there. I am not sure what I will need to do to do this. (As I said, I am very new to PHP.) Can somebody give me somewhere to start with this?
Thanks,
Trouble
Need help with Calendar Script
Moderator: General Moderators
Re: Need help with Calendar Script
It's pretty hard to know what to tell you. I don't recommend that any novice PHP programmer try to modify a script that somebody else has written, beyond extremely simple text substitutions or something like that.
What we CAN help you with is getting started learning how to write your own scripts to do things like you're describing. There are, as always, two parts to such an undertaking:
Some good references to begin learning the syntax are:
http://w3schools.com/php/default.asp
http://us3.php.net/tut.php
What we CAN help you with is getting started learning how to write your own scripts to do things like you're describing. There are, as always, two parts to such an undertaking:
- Learning the rudiments of the syntax; and
- Having a very clear understanding of the precise logic you want to implement.
Some good references to begin learning the syntax are:
http://w3schools.com/php/default.asp
http://us3.php.net/tut.php
Re: Need help with Calendar Script
What do you have now? Have you written any code yet?
If all you need help with is loading calendar events from database, you propably already have some script that puts events there?
If all you need help with is loading calendar events from database, you propably already have some script that puts events there?
Re: Need help with Calendar Script
Yes, I do already have the calendar working.... Here is the URL for the calendar.....
http://www.premierewebdesign.net/CCSI/c ... /index.php
What I am trying to do is show the events that are listed on the calendar on the home page Please see http://www.premierewebdesign.net/CCSI/index.html
On the right side of that page you will see a column that says Upcoming Events..Right now it just has some placeholder text. But that is where I would like the Events that are on the calendar to be displayed.
http://www.premierewebdesign.net/CCSI/c ... /index.php
What I am trying to do is show the events that are listed on the calendar on the home page Please see http://www.premierewebdesign.net/CCSI/index.html
On the right side of that page you will see a column that says Upcoming Events..Right now it just has some placeholder text. But that is where I would like the Events that are on the calendar to be displayed.
Re: Need help with Calendar Script
The events do already write to the database from the calendar.
Re: Need help with Calendar Script
Im not sure how that calendar of yours work, but simple fetch from database and then echoing it in the right place would work?
Not quite sure if i got the question right..
Not quite sure if i got the question right..