Generate XHTML calendar for a given month or year

PHP, Tutorials
Dynamic Calendar is a class that produces timetables for a given month or year as a Html tables (Xhtml-Valid). This class is dependent upon the Php local date capacities (default) and backs alternatively the Adodb Date Library. Underpinned dates (on frameworks utilizing a 32-bit marked number Unix time_t): -Using Php local date capacities: 1902 -2037 (Unix) and 1971 -2037 (Windows) -Using Adodb Date Library: 100 -3000 and later on both Unix and Windows The generated calendars can: - Be generated in plain format (without any links) - Optionally have navigation controls - Optionally have a date picker control - Optionally have linkable days (url or javascript) - Optionally have event days (layout) with event links - Optionally have 'event content' with links and own layout - Support different GMT zones…
Read More

Use PHP to Gzip CSS files

PHP, Techniques, Tips
Minimising the time a client needs to sit tight for a site page to load is significant. Utilizing Gzip and Php we can minimise document sizes of Css records. This method is a compelling and basic path to lessen page download examine and speed your webpage that will work with generally Php establishments, even those on imparted hosting that don’t have mod_deflate turned on in their Apache setup. Just add the code below at the top of your page. You then need to change the links to point to your CSS files. if(extension_loaded('zlib')){ ob_start('ob_gzhandler'); } header ("content-type: text/css; charset: UTF-8"); header ("cache-control: must-revalidate"); $offset = 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT"; header ($expire); ob_start("compress"); function compress($buffer)…
Read More

EXPANDING IMAGE MENU with jQuery aand Ajax

Ajax, PHP, Tutorials, Web Design & Programming
In today's excercise we will make a developing picture menu with jquery. The thought is to have a few segments with dark and white picture cuts that will make a substance range slide out when we click on them. We will additionally slide in the shaded form of the picture, making a slick impact. [caption id="attachment_406" align="alignnone" width="581"] Expanding Menu[/caption] The Html structure comprises of a prevailing holder and an unordered record where every thing is one of the sections. We will give the prevailing compartment the class "ei_menu" and additionally the id "ei_menu". The record things are set to hold a connection component with two compasses inside and a div component with the substance. The two compasses are for the foundation picture indicated at the starting and the hued…
Read More

Comment system with jQuery, PHP AND MYSQL

Ajax, Databases, PHP, Techniques
This time we are set to improve Comment framework without invigorating page with jquery, Ajax and Php. In this requisition we had actualized with gravatarimage. It's is helpful and basic just a few lines of code. Examine the live demo impact. javascript code. http://jquery.js $(function() { $(".submit").click(function() { var name = $("#name").val(); var email = $("#email").val(); var comment = $("#comment").val(); var dataString = 'name='+ name + '&email=' + email + '&comment=' + comment; if(name=='' || email=='' || comment=='') { alert('Please Give Valid Details'); } else { $("#flash").show(); $("#flash").fadeIn(400).html('Loading Comment...'); $.ajax({ type: "POST", url: "commentajax.php", data: dataString, cache: false, success: function(html){ $("ol#update").append(html); $("ol#update li:last").fadeIn("slow"); $("#flash").hide(); } }); }return false; }); }); C omment.php Contains HTML code here class timeline li{display:none} <ol id="update" class="timeline"> </ol> Name Email commentajax.php Contains PHP and HTML…
Read More

Ajax Polling/Voting System with jQuery, Ajax, PHP and MySQL

Ajax, Databases, PHP, Tutorials
Surveying framework or Voting framework is extremely regular in sites. Voting could be about your website or site or some other thing simply to get the client consideration and get your thought regarding your item. Database Structure Copy this db structure as it is and paste in your mysql window. CREATE TABLE IF NOT EXISTS `polling` ( `id` int(11) NOT NULL AUTO_INCREMENT, `liked` int(11) NOT NULL, `dislike` int(11) NOT NULL, `average` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -- Dumping data for table `polling` -- INSERT INTO `polling` (`id`, `liked`, `dislike`, `average`) VALUES (1, 1, 1, 1); CREATE TABLE IF NOT EXISTS `polling_ip` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userip` varchar(100) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; JQUERY CODE…
Read More

PHP AND MySQL to create : registration with email verification and login

Databases, PHP
Have you ever registered on a website and you were required to activate your newly created account via a confirmation link sent to the email address you supplied while registering? This Email verification “Mechanism” is very common nowadays especially in forums, popular websites such as ebay, paypal, Facebook etc .Verifying Email Address helps to reduce spam and also to make sure that the email supplied belongs to that member. WHAT ARE WE GOING TO BUILD ? We are going to build a small system in which a user can register a new account. After registration, a confirmation link will be emailed to the email supplied in the registration form. The user will have to log in his email Account and click the activation link. After that, He or she or…
Read More

jQuery, Ajax and PHP For Facebook like Autosuggestion

Ajax, PHP, Techniques, Tutorials
Facebook like Autosuggestion user search with jQuery, Ajax and PHP. It's simple and clean just you have to change the database details. Download the Script. Edit Config.php change the database details. Database create database table with name "test_user_data" CREATE TABLE test_user_data ( uid INT AUTO_INCREMENT PRIMARY KEY, fname VARCHAR(25), lname VARCHAR(25), country VARCHAR(25), img VARCHAR(50) ); Auto.html contains jquery(javascript) and HTML Code. Take a look at input field class valuessearch http://jquery.js </script> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') {} else { $.ajax({ type: "POST", url: "search.php", data: dataString, cache: false, success: function(html) { $("#display").html(html).show(); } }); }return false; }); }); </script> <input type="text" class="search" id="searchbox" /> Download Files
Read More