Posts

how to use an image as a reset button in html?

if  you want to use an image as reset button so you have to call a predefined function of javascript on onclick event. simply copy and paste this code in your page and change the image path... <input type="image" src="images/reset-btn.png" onClick="this.form.reset();return false;">

Get First date and last Last Date of current month in php.

// Get First date in current month in php. //echo $first_day = date('Y-m-d', strtotime(date('m').'/01/'.date('Y').' 00:00:00')); // Get Last date in current month in php. $last_day = date('Y-m-d',strtotime('-1 second',strtotime('+1 month',strtotime(date('m').'/01/'.date('Y').' 00:00:00')))); echo $last_day;

Get First week day and last week day of current month in php.

// For First week day of current month echo $first_week_day = date("Y-m-d", strtotime(date("Y").'W'.date('W')."0")); // For Last week day of current month echo $last_week_day = date("Y-m-d", strtotime(date("Y").'W'.date('W')."7"));

Star rating plugin for CakePHP

Download Latest version for CakePHP 1.2: http://www.wuala.com/mystic11/public/rating2.3.zip Latest version for CakePHP 1.3: http://www.wuala.com/mystic11/public/rating2.4.zip   Installation and Use 1) Make sure you meet the requirements above. For the download and integration of a javascript framework, please visit http://www.prototypejs.org/ for Prototype and http://jquery.com/ for jQuery. 2) Extract the plugin, including the subfolder rating , to your app plugins folder app/plugins . 3) Copy the rating/config/plugin_rating.php to your app configs folder app/config and change the settings to your desire. It is recommended to let Rating.showHelp set to true until everything works. 4) Apply the install.sql to your database to create the ratings table CREATE TABLE `ratings` (   `id` int(11) unsigned NOT NULL auto_increment,   `user_id` char(36) NOT NULL default '',   `model_id` char(36) NOT NULL default '',     `model` varchar(100) NOT NULL 

select query in cake php with where and like

$data = $this->paginate('Recipe',array ("OR" => array ("title LIKE" => "%".$recipe_search_word."%","short_desc LIKE" =>  "%".$recipe_search_word."%")));         $this->set('search',$data);

how to solve error ox80040600 in outlook?

i have a problem in outlook during receiving message in outlook. it is showing error ox80040600. for solveing this error. please follow this Step 1: Exit Outlook Step 2: Find the Outlook .pst file Click Start , and then click Run . Type control in the Open box, and then press Enter. If you see the Pick a category view, click User Accounts . If you do not see the Pick a category view, go to step 2D. Double-click Mail . Click Data Files . Click Personal Folders , and then click Settings . Note If there are no Personal Folders services in your profile and if you can store information such as messages, contacts, or appointments in Outlook, your information is most likely being stored in a mailbox on an Exchange server. If this is true, information is typically backed up on the server. Contact the Exchange server administrator for more information. Note the text in the Filename box. Note You may have to click in the Filename box and then use the Righ

How to call 2 javascript functions on a single html button click?

<input type="button" id="next" name="next" value="Next" onClick="javascript:if(formcheck()) secondblock()"> Note=>which function you want to call first write the name of that function at first position;