Code and Tech

INCOMPLETE – Parsing XML with SimpleXML and PHP

More reference: http://www.sitepoint.com/parsing-xml-with-simplexml/ Given the XML: <Calendar> <Account> <Name>Sample Account Name</Name> <Client>Test User</Client> </Account> <CalendarDates> <CalendarDate> <Date>2014-03-01</Date> <Events> <Event> <Name>Event Number One</Name> <StartingAt>2014-03-01T09:30:00</StartingAt> <Categories>General</Categories> </Event> <Event> <Name>Another Event</Name> <StartingAt>2014-03-01T09:30:00</StartingAt> <Categories>Meeting</Categories> </Event> <Event> <Name>Hockey Game</Name> <StartingAt>2014-03-01T10:00:00</StartingAt> <Categories>Sports</Categories> </Event> </Events> </CalendarDate> </CalendarDates> </Calendar> Perhaps this was entered into a textarea on a form and we have read […]

INCOMPLETE – Parsing XML with SimpleXML and PHP Read More »

Nice Simple Lightbox

Too often jquery plugins suffer from the Windows mentality of “do everything for everyone” which leaves them bloated and confusing. Sometimes you just wanted something nice and simple to perform a task quickly out of the box. I was looking for a lightbox like that when I came across Lightbox_me by Buck Wilson. Quick and

Nice Simple Lightbox Read More »

Loop Through PHP Request Values – GET and POST

Loop through PHP Request Values In order to Loop through PHP Request Values – GET and POST without knowing what they all might be, you can simply use the following code: foreach ($_REQUEST as $key => $value) { $value = mysql_real_escape_string( $value ); $value = addslashes($value); $value = strip_tags($value); if($value != “”){$requestnumber ++;} echo $key.

Loop Through PHP Request Values – GET and POST Read More »