This is my first time writing a class. The idea of this guy is to generate an HTML table. Here is the Class and an example of How to use it. And Finally, the output from that example is here.
By : bigphish
<?php
class Table {
var $TblOutAll; var $TblStartCheck; var $TblEndCheck;
function EndTbl(){ $this->TblOutAll .= "</table>\n\n"; $this->TblEndCheck = true; }
function TblPrint(){ if($this->TblStartCheck == true && $this->TblEndCheck == true) { return $this->TblOutAll; } else { $debug = $this->TblOutAll; return "\n\n<h3>One or more of the required functions was either not called or not called correctly</h3>\n\n Here is what was is in your table\n <pre>" . htmlspecialchars($this->TblOutAll) . "</pre>\n"; }
}
}
?>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.