HTML Grid Creation

Post Thumbnail of HTML Grid Creation
 PHP, Programming, Web         4 comments   

Whilst working on a project I needed to be able to create a grid using tables with a specific width,height and identifier to be used with jQuery. So I wrote a quick function in PHP, possibly not the most practical as it could be done with DOM and save a lot of server execution time …

PHP Dynamic CRUD Code

Post Thumbnail of PHP Dynamic CRUD Code
 Open Source, PHP, Programming         No comments   

I have been working on a dynamic CRUD system in PHP for a recent project of mine, I have stripped down the code the untangled it from the rest of my system for the public.
The system is mostly class based using objects with public variables corresponding the the field names in a mysql table.
I did …

PHP JSON Class Routines

Post Thumbnail of PHP JSON Class Routines
 PHP, Programming         No comments   

Recently whilst working on a project, I needed a method of returning JSON from a class based on it’s public variables.  The routines are not perfect and may need work but if used correctly issues shouldn’t occur.
Class To JSON

function class_to_json($input)
{
if($input)
{
$class_vars = get_object_vars($input);

EXULT designed by ZENVERSE  |  In conjunction with Reseller Hosting from the #1 Web Hosting Provider - HostNexus.