Use pre Tag to Format Your PHP Code in WordPress Posts

Taking advice from Writing Code in Your Posts, I am now using only the pre tag to fromat the PHP code in WordPress posts. It will look like this:

	if (isset($_POST['h_sys_submitted'])){	
	    $h_sys = safeEscapeString($_POST["h_sys_submitted"]);
	} else{
		$h_sys = '';
	}
	if (isset($_POST['asc_turned_to_submitted'])) {	
    	$asc_turned_to = safeEscapeString($_POST["asc_turned_to_submitted"]);
	} else{
		$asc_turned_to = '';
	}
Series NavigationChange real_escape_string to mysqli_real_escape_string for Function safeEscapeString in PHP 7.0
This entry was posted in PHP and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.