WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : This code consists of two parts, the first part is a .html file that uses a form to pass 3 date variables into day_of_week.php3 You input the mm/dd/yyyy of the day then it prints what day of the week that day falls on.
Categories : Date Time, PHP, Complete Programs Update Picture
Tim Crider
Date : Aug 15th 1998
Grade : Be the 1st to grade this Code Example
Viewed : 6235
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Tim Crider
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

/*
* I'm still a new PHP developer, and am FAR from anything great, however
* I have a few pretty cool toys including my Custom Home Page Maker on
* my website at http://temple.lod.com/alucard/
* Please feel free to drop by, and check out my work, and give ideas,
* comments or suggestions. I could use all the help I can get.
*/

// This should be a .html file... like day.html
<html>
<FORM ENCTYPE="multipart/form-data" ACTION="day_of_week.php3" METHOD=POST>
<table border=0 width=100%>
<tr>
<td bgcolor=redorange colspan=2>
<center><h3>Date Selector</h3></center>
This little program will find what day of the week a date falls on inbetween
the years <b>1969</b> and
<b>2035</b>. To use this just type in the Day/Month/Year in numeric form. *For
example September 14th, 1976
is 9/14/1976*
</td>
</tr>
<tr>
<td width=50% bgcolor=redorange><b>Enter a date: (mm/dd/yyyy)</b></td>
<td width=50% bgcolor=redorange align=center>
<INPUT NAME="month" TYPE="text" size="4" MAXLENGTH=2> /
<INPUT NAME="day" TYPE="text" size="4" MAXLENGTH=2> /
<INPUT NAME="year" TYPE="text" size="4" MAXLENGTH=4>
<INPUT TYPE="submit" VALUE=" Find Day of Week "></td>
</tr>
</table>
</FORM>
</html>

// This goes in day_of_week.php3
<html>

<center><h1>
<?
if (checkdate($month,$day,$year) && ($year <= 2035 && $year >= 1969))
{
echo date( "F d, Y", mktime(0,0,0,$month,$day,$year) );
print(" is on a " . date("l<br>", mktime(0,0,0,$month,$day,$year)));
}
else { echo("Invalid DATE"); }
?>
</h1></center>



Functions for calculating sunrise/sunset, twilight * length of day based on latitude / longituse & date
Categories : Date Time, PHP, Complete Programs
A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed.
Categories : Date Time, PHP, Complete Programs, Calendar
Bs_StopWatch is a class to measure time intervals in microseconds.
Categories : PHP, Date Time, PHP Classes
Calendars to choose a range of dates , reservation events ...
Categories : PHP, Calendar, Java Script, Date Time
Simple graphic clock/watch generation using gd library.
Categories : Graphics, Date Time, PHP
Parses HTTP_USER_AGENT so that you can customize your site to different browsers
Categories : HTML, PHP, Complete Programs
Voting Machine with Access 97
Categories : PHP, ODBC, WinNT, MS Access, Complete Programs
phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web.
Categories : Databases, MySQL, Complete Programs, PHP
Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP, Arrays, Date Time, Databases, MySQL
This program will take data from a user via a web based form, validate it, show it to the user for re-validation, and finally insert it into the database. Plenty of sanity checking on the fields in the form.
Categories : MySQL, HTML and PHP, PHP, Complete Programs, Databases
phpYellow Pages Standard
Categories : PHP, Complete Programs, Databases, Directories, Search
Monitor the files you provide for download! Track who downloads your files, and when.
Categories : PHP, Complete Programs, Utilities
Builds JavaScript that updates the contents of one selector based on another.
Categories : HTML, Java Script, PHP, Complete Programs, General
Change the background color of a website daily dynamically using the php date function to get the current day of the week and depending on that day, set the background color for the web page.
Categories : PHP, Date Time, Beginner Guides, Web Design
Customizable Calendar Class
Categories : HTML and PHP, Date Time, PHP, PHP Classes, Calendar