FB Personalized Share Button

Click Here for referrence Basically just use this snippet and insert it to your HTML <a name=”fb_share” type=”button” share_url=”http://www.realmacsoftware.com/clear/”&gt; <script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share&#8221; type=”text/javascript”></script> NOTE: share_url is the tag wherein you place the URL of what you want to share. then add your desired css, as for me: a.share { background: url(“http://assets1.realmacmedia.com/websites/_resources/shared/images/social_buttons_sprite.png&#8221;) no-repeat scroll -31px -14px transparent; […]

Creating Array of Objects using stdClass

Click HERE for the original code. // CREATE FIRST AN ARRAY WHERE IN THE OBJECTS WILL BE STORED $lib = array(); $book = new stdClass; $book->title = “Harry Potter and the Prisoner of Azkaban”; $book->author = “J. K. Rowling”; $book->publisher = “Arthur A. Levine Books”; $book->amazon_link = “http://www.amazon.com/dp/0439136369/&#8221;; // STORE THE OBJECTS IN THE ARRAY […]