Monday, 16 December 2013

phonegap IOS xcode Apple store

1.Phonegap Guide:
http://docs.phonegap.com/en/edge/guide_platforms_index.md.html
http://docs.phonegap.com/en/edge/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide

2.Xcode 4 configure for Phonegap:
========================
http://docs.phonegap.com/en/1.8.0/guide_getting-started_ios_index.md.html

3.Xcode 4.5 and iOS 6 SDK:
==========================
http://docs.phonegap.com/en/2.5.0/guide_getting-started_ios_index.md.html

4.IOS App Developement:

5.Apple Developer:
Ref:1
http://www.raywenderlich.com/8003/how-to-submit-your-app-to-apple-from-no-account-to-app-store-part-1
http://www.raywenderlich.com/8045/how-to-submit-your-app-to-apple-from-no-account-to-app-store-part-2
REF2
6.submit App in (App store All in One)
======================================
https://developer.apple.com/support/appstore/


Method : 2 (older version Installation)

Adobe phonegap buiild: -- installer for xcode phonegap project setup:

http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-xcode-for-ios.html





Phonegap Version Upgrade

Cordova version upgrade from lower to upgrade:
------------------------------------------------------

The Android Phonegap conversion docs have changed significantly. There's no longer a step by step process that walks through each upgrade requirement. Instead, theres an "update" program that theoretically does the upgrade automatically. It didn't exactly work this way for me. After going through the documented update process (one step now) I had to go through my project and make sure everything was in place - specifically the cordova-2.7.0.jar and the cordova-2.7.0.js files.

I've just finished upgrading an Android project from Phonegap v2.5.0 to Phonegap v2.7.0. The process I followed was:

Back up the Android project.

Execute the Phonegap update command for v2.7.0 as described in the PG upgrade documentation

Change the current directory to Phonegap for Android directory:

$ cd /phonegap-2.7.0/lib/android
Execute the update command:

$ ./bin/update YOUR/CORDOVA/PROJECT/DIR
Ensure that Eclipse is referencing the correct Phonegap library in the libs directory: cordova-2.7.0.jar.

I also deleted the reference to the previous jar file.

Make sure that the phonegap javascript file (cordova-2.7.0.js) is referenced appropriately in the index.html file.

From within Eclipse: Project/Clean

Build the project and test.Pho

Google Maps get direction in JQM

Google Maps get direction in JQM from auto select current location and select to addr:
==============================================================

Ref Link:
 http://stackoverflow.com/questions/13345479/clean-example-of-directions-with-google-maps-in-jquery-mobile
<!doctype html>
<html lang="en">
   <head>
        <title>jQuery mobile with Google maps</title>
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
        <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3&sensor=false&language=en"></script>
        <script type="text/javascript">

            var map,
                currentPosition,
                directionsDisplay,
                directionsService;

            function initialize(lat, lon)
            {
                directionsDisplay = new google.maps.DirectionsRenderer();
                directionsService = new google.maps.DirectionsService();

                currentPosition = new google.maps.LatLng(lat, lon);

                map = new google.maps.Map(document.getElementById('map_canvas'), {
                   zoom: 15,
                   center: currentPosition,
                   mapTypeId: google.maps.MapTypeId.ROADMAP
                 });

                directionsDisplay.setMap(map);

                 var currentPositionMarker = new google.maps.Marker({
                    position: currentPosition,
                    map: map,
                    title: "Current position"
                });

                var infowindow = new google.maps.InfoWindow();
                google.maps.event.addListener(currentPositionMarker, 'click', function() {
                    infowindow.setContent("Current position: latitude: " + lat +" longitude: " + lon);
                    infowindow.open(map, currentPositionMarker);
                });
            }

            function locError(error) {
                // initialize map with a static predefined latitude, longitude
               initialize(59.3426606750, 18.0736160278);
            }

            function locSuccess(position) {
                initialize(position.coords.latitude, position.coords.longitude);
            }

            function calculateRoute() {
                var targetDestination = $("#target-dest").val();
                if (currentPosition && currentPosition != '' && targetDestination && targetDestination != '') {
                    var request = {
                        origin:currentPosition,
                        destination:targetDestination,
                        travelMode: google.maps.DirectionsTravelMode["DRIVING"]
                    };

                    directionsService.route(request, function(response, status) {
                        if (status == google.maps.DirectionsStatus.OK) {
                            directionsDisplay.setPanel(document.getElementById("directions"));
                            directionsDisplay.setDirections(response);

                            /*
                                var myRoute = response.routes[0].legs[0];
                                for (var i = 0; i < myRoute.steps.length; i++) {
                                    alert(myRoute.steps[i].instructions);
                                }
                            */
                            $("#results").show();
                        }
                        else {
                            $("#results").hide();
                        }
                    });
                }
                else {
                    $("#results").hide();
                }
            }

            $(document).live("pagebeforeshow", "#map_page", function() {
                navigator.geolocation.getCurrentPosition(locSuccess, locError);
            });

            $(document).on('click', '#directions-button', function(e){
                e.preventDefault();
                calculateRoute();
            });

        </script>
    </head>
    <body>
        <div id="basic-map" data-role="page">
            <div data-role="header">
                <h1><a data-ajax="false" href="/">jQuery mobile with Google maps v3</a></h1>
            </div>
            <div data-role="content">
                <div class="ui-bar-c ui-corner-all ui-shadow" style="padding:1em;">
                    <div id="map_canvas" style="height:350px;"></div>
                </div>
                <div data-role="fieldcontain">
                    <label for="target-dest">Target Destination:</label>
                    <input type="text" name="target-dest" id="target-dest" value=""  />
                </div>
                <a href="#" id="directions-button" data-role="button" data-inline="true" data-mini="true">Get Directions</a>
                <div id="results" style="display:none;">
                    <div id="directions"></div>
                </div>
            </div>
        </div>    
    </body>
</html>

Google Maps directions service in a jQuery Mobile page

Google Maps directions service in a jQuery Mobile page
:==========================================:


<!DOCTYPE html>
<html>
    <head>
        <title>jQuery mobile with Google maps geo directions example</title>
        <meta content="en" http-equiv="content-language">
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
        <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
        <script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3&sensor=false&language=en"></script>
        <script type="text/javascript">
            $(document).on("pageinit", "#map_page", function() {
                initialize();
            });

            $(document).on('click', '#submit', function(e) {
                e.preventDefault();
                calculateRoute();
            });

            var directionDisplay,
                directionsService = new google.maps.DirectionsService(),
                map;

            function initialize()
            {
                directionsDisplay = new google.maps.DirectionsRenderer();
                var mapCenter = new google.maps.LatLng(59.3426606750, 18.0736160278);

                var myOptions = {
                    zoom:10,
                    mapTypeId: google.maps.MapTypeId.ROADMAP,
                    center: mapCenter
                }

                map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
                directionsDisplay.setMap(map);
                directionsDisplay.setPanel(document.getElementById("directions"));
            }

            function calculateRoute()
            {
                var selectedMode = $("#mode").val(),
                    start = $("#from").val(),
                    end = $("#to").val();

                if(start == '' || end == '')
                {
                    // cannot calculate route
                    $("#results").hide();
                    return;
                }
                else
                {
                    var request = {
                        origin:start,
                        destination:end,
                        travelMode: google.maps.DirectionsTravelMode[selectedMode]
                    };

                    directionsService.route(request, function(response, status) {
                        if (status == google.maps.DirectionsStatus.OK) {
                            directionsDisplay.setDirections(response);
                            $("#results").show();
                            /*
                                var myRoute = response.routes[0].legs[0];
                                for (var i = 0; i < myRoute.steps.length; i++) {
                                    alert(myRoute.steps[i].instructions);
                                }
                            */
                        }
                        else {
                            $("#results").hide();
                        }
                    });

                }
            }
        </script>
    </head>
    <body>
        <div data-role="page" id="map_page">
            <div data-role="header">
                <h1><a href="#">jQuery mobile - Google maps directions service</h1>
            </div>
            <div data-role="content">
                <div class="ui-bar-c ui-corner-all ui-shadow" style="padding:1em;">
                    <div id="map_canvas" style="height:300px;"></div>
                    <div data-role="fieldcontain">
                        <label for="from">From</label>
                        <input type="text" id="from" value="Goteborg, Sweden"/>
                    </div>
                    <div data-role="fieldcontain">
                        <label for="to">To</label>
                        <input type="text" id="to" value="Stockholm, Sweden"/>
                    </div>
                    <div data-role="fieldcontain">
                        <label for="mode" class="select">Transportation method:</label>
                        <select name="select-choice-0" id="mode">
                            <option value="DRIVING">Driving</option>
                            <option value="WALKING">Walking</option>
                            <option value="BICYCLING">Bicycling</option>
                        </select>
                    </div>
                    <a data-icon="search" data-role="button" href="#" id="submit">Get directions</a>
                </div>
                <div id="results" style="display:none;">
                    <div id="directions"></div>
                </div>
            </div>
        </div>
    </body>
</html>

Wednesday, 11 December 2013

TABLE Vs GRID VIEW in JQM

TABLE Vs GRID VIEW in JQM  - Report in multi col multi row based.

TABLE FULL CODE:
===================
  <table data-role="table" id="my-table" data-mode="reflow" style="width:100%;">
  <thead >
     <tr bgcolor="#0099FF" >
      <th>S.No</th>
      <th>Services</th>
      <th>Cost</th>
   
    </tr>
  </thead>
  <tbody>
   
    <tr bgcolor="#FFFFFF" >
      <th>1</th>
      <th> Registration</th>
   
      <th>$ 50</th>
     </tr>
   
     <tr bgcolor="#FFFFFF" >
      <th>2</th>
      <th>Consultation</th>
   
      <th>$ 100</th>
     </tr>
   
     <tr bgcolor="#FFFFFF" >
      <th>3</th>
      <th>X-Ray</th>
      <th>$ 150</th>
     
     </tr>
   
   
   
    </tbody>
</table>

=========================================================================================

GRID VIEW FULL CODE:
====================

<div class="ui-grid-b" style="align:center;width:100%;margin-top:50px;" id="medigrid">


      <div class="ui-block-a ui-bar-b" >S.No</div>
      <div class="ui-block-b ui-bar-b" >Particular</div>
      <div class="ui-block-c ui-bar-b">Amt</div>
     
     
     <div class="ui-block-a ui-bar-c">1</div>
      <div class="ui-block-b ui-bar-c">Doctor Consultant</div>
      <div class="ui-block-c ui-bar-c">$ 50</div>
     
      <div class="ui-block-a ui-bar-d">2</div>
      <div class="ui-block-b ui-bar-d">Specialist visit</div>
      <div class="ui-block-c ui-bar-d">$ 100</div>
     
       <div class="ui-block-a ui-bar-c">3</div>
      <div class="ui-block-b ui-bar-c">Lab test</div>
      <div class="ui-block-c ui-bar-c">$ 200</div>
     
     
      <div class="ui-block-a ui-bar-d">4</div>
      <div class="ui-block-b ui-bar-d">Medicine</div>
      <div class="ui-block-c ui-bar-d">$ 100</div>
         
      <div class="ui-block-a ui-bar-c">5</div>
      <div class="ui-block-b ui-bar-c">Bad charge</div>
      <div class="ui-block-c ui-bar-c">$ 100</div>
         
      <style>
      .ui-block-a,.ui-block-b,.ui-block-c,.ui-block-d
      {
      padding-top:5px;
      padding-bottom:5px;
   
      }
     
      </style>
     
</div>
----------------------------------------------------------------------------------------

Saturday, 7 December 2013

Remember Me / Keep me Login - HTML,Jquery

<html>
<head> 

<script src="http://wcetdesigns.com/assets/javascript/jquery.js"></script>
<script src="http://wcetdesigns.com/assets/javascript/jquery/cookie-plugin.js"></script>
<script> 

function remember_me(){
   var c = $("#check"); //INPUT CHECKBOX

   //IF CHECKBOX IS SET, COOKIE WILL BE SET
   if(c.is(":checked")){
     var u = $("#username").val(); //VALUE OF USERNAME
     var p = $("#password").val(); //VALUE OF PASSWORD
     $.cookie("username", u, { expires: 3650 }); //SETS IN DAYS (10 YEARS)
     $.cookie("password", p, { expires: 3650 }); //SETS IN DAYS (10 YEARS)
   }
}
//NEXT PAGE LOAD, THE USERNAME & PASSWORD WILL BE SHOWN IN THEIR FIELDS
function load_em(){
   var u = $.cookie("username"); //"USERNAME" COOKIE
   var p = $.cookie("password"); //"PASSWORD" COOKIE

   $("#username").val(u); //FILLS WITH "USERNAME" COOKIE
   $("#password").val(p); //FILLS WITH "PASSWORD" COOKIE
}
</script>
</head>
<body onLoad="load_em()"> 

<input id="username"><br>
<input id="password" type="password"><br>
<input id="check" type="checkbox">
 Remember Me<br>
<input onClick="remember_me()" type="button" value="Demo"> 
</body>
</html>

Friday, 6 December 2013

JQM POP UP

JQM POP UP  Tool tip,dialog,login form,menu,etc..
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>jQuery Mobile 1.2</title>
     <link rel="stylesheet"  href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
    <script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
<body>

    <div data-role="content">

        <!-- your content goes here -->

 <a href="#simplepopup" data-rel="popup">Open Popup</a>
<div data-role="popup" id="simplepopup">
    <p>This is a completely basic popup, no options set.<p>
</div>


<a href="#tooltip" data-rel="popup" data-role="button">Find out more</a>
<div data-role="popup" id="tooltip" data-theme="e">
    <p>You found out more!.</p>
</div>


<a href="#menu" data-rel="popup" data-role="button">Menu</a>
<div data-role="popup" id="menu" data-theme="a">
    <ul data-role="listview" data-theme="c" data-inset="true">
        <li data-role="divider" data-theme="a">My Menu</li>
        <li>Unlinked</li>
        <li><a href="methods.html">Linked</a></li>
        <li><a href="methods.html">With count</a><span class="ui-li-count">42</span></a></li>
    </ul>
</div>

<a href="#nestedmenu" data-rel="popup" data-role="button">Nested Menu</a>
<div data-role="popup" id="nestedmenu" data-theme="none">
    <div data-role="collapsible-set" data-theme="b" data-content-theme="c" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" style="margin:0; width:250px;">
        <div data-role="collapsible" data-inset="false">
            <h2>Colors</h2>
            <ul data-role="listview">
                <li><a href="#">Red</a></li>
                <li><a href="#">Blue</a></li>
            </ul>
        </div>
        <div data-role="collapsible" data-inset="false">
            <h2>Shapes</h2>
            <ul data-role="listview">
                <li><a href="#">Circle</a></li>
                <li><a href="#">Square</a></li>
            </ul>
        </div>
    </div>
</div> <!-- collapse end tag end  div end-->


<a href="#login" data-rel="popup" data-position-to="window" data-role="button">Login</a>
<div data-role="popup" id="login" data-theme="a">
    <form style="padding:10px 20px;" method="post">
        <h3>Please sign in</h3>
        <label for="un" class="ui-hidden-accessible">Username:</label>
        <input type="js" name="user" id="un" placeholder="username" />

        <label for="pw" class="ui-hidden-accessible">Password:</label>
        <input type="password" name="pass" id="pw" placeholder="password" />

        <button type="submit" data-theme="b" onClick="index.php">Sign in</button>
    </form>
</div> <!-- form div end-->


<a href="#dialog" data-rel="popup" data-position-to="window" data-role="button" data-transition="pop">Dialog</a>
<div data-role="popup" id="dialog" data-overlay-theme="a" data-theme="c">
    <div data-role="header" data-theme="a">
        <h1>Delete Page?</h1>
    </div>
    <div data-role="content" data-theme="d">
        <h3>Are you sure you want to delete this page?</h3>
        <p>This action cannot be undone.</p>
        <a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="c">No</a>  
        <a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="b">Yes, Delete it</a>
    </div>
</div><!-- Dialog div end-->


<a href="#photo" data-rel="popup" data-position-to="window" data-role="button" data-transition="fade">Photo</a>
<div data-role="popup" id="photo" data-overlay-theme="a" data-theme="d" data-corners="false">
    <a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="nojs" class="ui-btn-right">Close</a><img src="http://lorempixel.com/450/300/food/" />
</div><!-- Photo div end here-->
    </div>

</body>
</html>

Thanks for the refernce from
http://net.tutsplus.com/tutorials/javascript-ajax/the-latest-updates-to-jquery-mobile/

captcha Implementataion

Client Side Captcha Implementation JS function:

A CAPTCHA is a type of challenge-response test used in website as an attempt to ensure that the response is generated by a human being.
There are basically 3 types of captcha first one and widely used is image captcha ,
second is mathematical captcha and last one is vice captcha

Reference by code project:
----------------------------

copy and paste the code to work for captcha. 
captcha.html
<html>
<head>
<title>Captcha</title>
   
    <script type="text/javascript">

   //Created / Generates the captcha function  
    function DrawCaptcha()
    {
        var a = Math.ceil(Math.random() * 10)+ '';
        var b = Math.ceil(Math.random() * 10)+ '';      
        var c = Math.ceil(Math.random() * 10)+ '';
        var d = Math.ceil(Math.random() * 10)+ '';
        var e = Math.ceil(Math.random() * 10)+ '';
        var f = Math.ceil(Math.random() * 10)+ '';
        var g = Math.ceil(Math.random() * 10)+ '';
        var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g;
        document.getElementById("txtCaptcha").value = code
    }

    // Validate the Entered input aganist the generated security code function  
    function ValidCaptcha(){
        var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
        var str2 = removeSpaces(document.getElementById('txtInput').value);
        if (str1 == str2) return true;      
        return false;
       
    }

    // Remove the spaces from the entered and generated code
    function removeSpaces(string)
    {
        return string.split(' ').join('');
    }
   

    </script>
   
   
   
</head>
<body onLoad="DrawCaptcha();">
<table>
<tr>
    <td>
        Welcome To Captcha<br />
    </td>
</tr>
<tr>
    <td>
        <input type="text" id="txtCaptcha"
            style="background-image:url(1.jpg); text-align:center; border:none;
            font-weight:bold; font-family:Modern" />
        <input type="button" id="btnrefresh" value="Refresh" onClick="DrawCaptcha();" />
    </td>
</tr>
<tr>
    <td>
        <input type="text" id="txtInput"/>  
    </td>
</tr>
<tr>
    <td>
        <input id="Button1" type="button" value="Check" onClick="alert(ValidCaptcha());"/>
    </td>
</tr>
</table>
</body>
</html>

MySQL Event Scheduler

MySQL Event Scheduler



Monday, March 30, 2009 - 11:05
A new feature in MySQL version 5.1.6 is the addition of events. These can be either a single event or a schedule, both of which can be given multiple commands to run.
First, you need to make sure that the event scheduler is running. To do this, open up MySQL query browser (or similar) and run the following MySQL command.


SHOW PROCESSLIST;

If the event scheduler you will see a row in the output that looks like this:
1
2
Id, User, Host, db, Command, Time, State, Info
120, 'event_scheduler', 'localhost', '', 'Daemon', 242, 'Waiting on empty queue', ''
Turning the event scheduler on and off is quite straightforward and can be done as a MySQL command, or as a parameter when starting the server, or even in an ini file. To turn the scheduler on as a MySQL command run the following:

SET GLOBAL event_scheduler = ON;

Conversely, to turn it off, run the following:

SET GLOBAL event_scheduler = OFF;

To turn it off when you start the MySQL server use the following parameter. Exchange DISABLED with ENABLED to turn it on.

--event-scheduler=DISABLED

To turn it off in the ini file use the following. Exchange DISABLED with ENABLED to turn it on.
event_scheduler=DISABLED For all instances of controlling the event scheduler you can also use 0 to turn it off and 1 to turn it on instead of DISABLED and ENABLED. If this doesn't work for you then try using On and Off for the values instead. You can add and alter events when the scheduler is turned off, but the events will not be run until the scheduler is enabled.

To create an event you need to use the CREATE EVENT command. Lets start off by creating a single event that adds a row to a table called test in the test database at a specified time in the future. The event is called addTimestamp and the command that inserts data is after the DO command. This doesn't have to be on a separate line, but it looks better and will makes sense when you start adding multiple commands.

1
2
3
4
CREATE EVENT addTimestamp
 ON SCHEDULE AT '2009-03-30 10:20:00'
 DO
  INSERT INTO test.test(timestamp) VALUES (UNIX_TIMESTAMP());
If you create an event in the past you will get the following message.
Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.

Note that this does not run your command, MySQL will just throw away your event and do nothing. The ON COMPLETION NOT PRESERVE setting tells MySQL to either save the event when it has been run, or to throw it away when complete. To save the event after it has been run add the following line underneath the ON SCHEDULE line.

ON COMPLETION PRESERVE
If you set this and try to create another event of the same name you will get an error stating that the name already exists, even if the old even is in the past.

To insert multiple MySQL commands you need to use the BEGIN and END commands. The following command builds upon the previous example, except this time the table is truncated (cleared) and a new timestamp is added.

1
2
3
4
5
6
7
8
9
10
11
delimiter |
 
CREATE EVENT addTimestamp
 ON SCHEDULE AT '2009-03-30 10:28:00'
 DO
  BEGIN
   TRUNCATE TABLE test.test;
   INSERT INTO test.test(timestamp) VALUES (UNIX_TIMESTAMP());
  END |
 
delimiter ;

The delimiter tags tell MySQL to pass the entire block in between BEGIN and END to the server before resetting this to the default and parsing each MySQL command separately.
If you want to run the event in an hour, and don't want to be tied down to times, then change the ON SCHEDULE line to read the following:

ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR
It is easy enough to see how to change the value of the interval here so I will leave this as an exercise to the reader.
To create an event that occurs every hour you need to change the syntax of the command slightly. Rather than give the SCHEDULE command a time or future interval you use the EVERY command.

1
2
3
4
5
6
7
8
9
10
11
12
delimiter |
 
CREATE EVENT addTimestamp
 ON SCHEDULE
  EVERY 1 HOUR
 DO
  BEGIN
   TRUNCATE TABLE test.test;
   INSERT INTO test.test(timestamp) VALUES (UNIX_TIMESTAMP());
  END |
 
delimiter ;

This can be taken a step further by restricting the window of execution. Lets say we wanted to run a command or set of commands every hour for the next 5 hours. The following commands would be added to the ON SCHEDULE command.

1
2
3
EVERY 1 HOUR
STARTS CURRENT_TIMESTAMP + INTERVAL 1 HOUR
ENDS CURRENT_TIMESTAMP + INTERVAL 5 HOUR

This will cause the commands to be run a total of 5 times.
If you want to know what events or schedules you are currently running the run the MySQL command SHOW EVENTS, this will give you a table full of information. This table will also contain any events that are in the past, but which have had the ON COMPLETION PRESERVE setting added to their creation.


To drop an event you need to run the DROP EVENT command, followed by the name of the event you created.
DROP EVENT addTimestamp;

Thanks fr reference link

http://www.hashbangcode.com/blog/mysql-event-scheduler-352.html


Thursday, 5 December 2013

IIS PHP configuration in Windows 7

IIS = PHP manger = sqlsrv = sql Native client = windows7 = PHP 5.4
================================================
1.Enable IIS in windows feature.

2.Install IIS manager for PHP

3.Register new PHP cgi-app in IIS manger

4.Enable (download PHP version related sqlsrv54 for php5.4 sqlsrv for php5.2)

5.open php.in file in txt format and enable it in corresponding method(uncommnet ; add text in extension)

6.Install sql native client

7.conn.php in inetpub->hms->conn.php run this file.(make array format connection,direct not accepted.)

<?php
$serverName = "localhost";
$database="hms";
$uid='sa';
$password='pass123';
$connectionInfo = array( "Database"=>$database, "UID"=>$uid, "PWD"=>$password);
$conn = sqlsrv_connect( $serverName, $connectionInfo );
//sqlsrv_configure('WarningsReturnAsErrors',0);
if( $conn === false ) {
    die( print_r( sqlsrv_errors(), true));
}

echo 'connected';
?>

IIS service in Windows7 IIS Manager Configure.

IIS enable/service provide in Windows7
=======================================
1)In windows7 PC->control panel->Programs and Features->Turn Windows features on or off Click

2)Windows feature panel will open, Then scroll down,

3)If you are installing IIS for evaluation purposes,
  you may want to select additional features to install.

Select the check boxes for all IIS features you want to install,
and then click OK to start installation.

4)Windows Features dialog box - Installation selection.

5)When the installation completes, the Windows Features dialog box closes, and the Control Panel is displayed.

6)To confirm that the installation succeeded, type in browser, http://localhost.

[ In the C:\ Drive inetpub folder is created. wwwroot is the directory for server script files placement area. ]

7)To open IIS Manager, click Start, type inetmgr / iis in the Search Programs then press ENTER.

IIS manager will open.

8)To uninstall this IIS (remove) Uncheck that windows feature and then delete folder in inetpub.

9)Futher addtion and removal feature are possible in IIS manger.



===================================================================

Redux vs Redux Toolkit vs React Context

  These are often confused. Feature Redux Redux Toolkit Context API Purpose State management Simplifies Redux Shares values in Rea...