Florida web design - 578 Part IV: Using PHP for Sysadmin Tasks

578 Part IV: Using PHP for Sysadmin Tasks Listing 16-8 (Continued) $reminders = array(); $logEntries = array(); // Get today s date $thisMonth = date( M ); $thisMM = date( m ); $thisDay = strtolower(date( D )); $thisDD = date( d ); $MMDD = sprintf( %02d-%02d , $thisMM, $thisDD); $lineNumber = 0; // Parse each line in the user s reminder file foreach ($list as $line) { // Count line number (needed for error reporting) $lineNumber++; // Ignore lines starting with # as comments if (preg_match( /^#/ , $line)) continue; // Ignore lines that are blank $line = ltrim($line); if (preg_match( /^$/ , $line)) continue; $line = substr($line,0, strlen($line)-1); list ($type,$when,$what) = explode( : , $line); if (preg_match( /daily/i , $type)) { // daily reminders have only 2 parts daily:file // so $when will have what we want in $what // Daily reminder array_push($reminders, $when); } else if ( preg_match( /weekly/i , $type) && !strcmp($thisDay, strtolower($when)) && !empty($what) ) {

WordPress database error: [Table 'armadillowebhosting_com_-_jsp.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '634' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply