I am testing my code, and realizing that I have a bigger issue...
What I want to happen is this...
In "index.php" I have this line in my php section which comes before my HTML section...
$sectionName = getSectionName($dbc, $slug);
And then a few lines later I have...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<!-- HTML Metadata -->
<title><?php echo (isset ($sectionName) ? $sectionName : 'EMPTY') ?> Section</title>
If getSectionName() successfully finds the "Section Name" for the "Section Slug" in the URL, then I want it displayed in <title> and also below in my HTML code (not shown here).
If getSectionName() cannot find the "Section Name" for the "Section Slug" in the URL, then I want...
1.) To call this function so I can log the error...
// Log Function Error.
logError($dbc, $resultsCode, $errorPage);
2.) I want to return something like the Zero-Length String, so my HTML page still loads and doesn't crash.
How can I have it both ways?! :-/