Here’s a PHP calendar script and tutorial. I took some approached I’d seen from other developers and turned them into a class… and cleaned them up a bit.
Original source
Here’s a PHP calendar script and tutorial. I took some approached I’d seen from other developers and turned them into a class… and cleaned them up a bit.
Original source
13 responses to “PHP Calendar Script Tutorial”
hy john !
why it says Parse error: syntax error, unexpected 'function_construct' (T_STRING), expecting variable (T_VARIABLE) in C:xampphtdocsDASHindex.php on line 13.. confused!!!
can you help me out. I wanted to use a jquery ui cal widget with arrows on the left and right of the calendar and make it change it dynamically rather than hard code the values into new calender()
thanks.
Hello John, nice work! Thank you for your great work and dedication, keep on this path! I want to add something about OOP, when you are working with methods ( and functions in general ) try as much as possible to not output HTML code from them.If you want to change the HTML structure of the calendar, you have to do it inside the class, each and every time, this could easily bring tons of problems.
Try building this class in a way that will return your required data ( you can even make it return json code for working with javascript, your class becomes so flexible ), then, you can use the data as you want.
Hey, nice video! I wanted to know whitch IDE you are using
You have a commendable attitude.
This is great! Thanks for taking the time to show us these marketable skills 🙂
awesome video
// Days of the week header
foreach ( $this->days_of_week as $day ) {
$output .= '<th class="header">' . $day . '</th>';
}
the website is pushing out an error on the foreach statement and i cant figure out what i did wrong. btw it's line 30
Does the data actually feed into a database or email account? if it does I will be willing to subscribe to your course
Hey John, do you have a video on how to make a scrolling effect for a website when I have an HTML bookmark? I can't find anything that works. Thanks!
Heyo! Just wanted to say you have been a TON of help :). Thanks for everything 😀
Lots of admiration for what you do. I also am military moving into the IT World. I'm already quite established and reasonably experienced with PHP, but what you talk about and teach is so useful and relevant.
Great job!
Hi!I'm waintin your mail 🙂