$staffName = isset($_GET[‘staffName’]) ? $_GET[‘staffName’] : $staffName = ”;
or even shorter
$staffName = $_GET[‘staffName’] ?: $staffName = ”;
instead of
if(isset($_GET[‘ckDone’])){$ckDone = ‘checked’;} else {$ckDone = ”;}
See this article.
$staffName = isset($_GET[‘staffName’]) ? $_GET[‘staffName’] : $staffName = ”;
or even shorter
$staffName = $_GET[‘staffName’] ?: $staffName = ”;
instead of
if(isset($_GET[‘ckDone’])){$ckDone = ‘checked’;} else {$ckDone = ”;}
See this article.
Regarding representing and storing dates after 2037, I need to analyze this discussion further.
A nice tutorial on this confusing subject.
Here is a nice article explaining mysqli, including prepared statements.
So, the question is, how do you use a prepared statement when the number of parameters is variable? I think the answer is here, but I have to study it.
Situation: Updating 2 tables at the same time. The second table is keyed to the auto increment column of the first table. How do you get the auto increment value for the row you just entered?
This answers the question.
Everything you ever wanted to know about the .htaccess file on an Apache web server.
After some frustration trying to understand how to install web fonts, this tutorial cleared it all up.
This web font article is also quite good.
Based on many recommendations Font Squirrel is the go to place for web fonts.
This is a very nice compilation of php and perl scripts that will add search functionality to a website.
This is a helpful example.
This post is useful on that subject.