
Search In
I want to use another if statement in below mail function with failure message.
so when mail will not sent it can display failure message on the screen
<?php
if(isset($_POST['submit'])){
$to = "Test@gmail.com"; // this is your Emai
T = 10
N = 100 % number of tasks
parfor i = 1:N
% initialize "t" for each "i"
t(i) = 2;
% keep track of t(i) for each "i"
while t(i) < T
x(i) = i*2;
Rails Internationalization : Setting locale from Domain Name
For translating your application to other language, you can set I18n.default_locale to your locale in application.rb or in initializers as I told in my previous blog Configuring i18N Api
You can reverse a Singly Linked List in linear order of time by implementing the following iterative approach, there are other recursive approaches are also available. But for the sake of simplicity I am implementing the iterative approach only, as
LOOPS IN JAVASCRIPT
A loop allows us to repeat or execute a set of statement multipel times, which are written inside a loop. It execute a block of code many times. Just like all other programming languages javascript also support looping concept.
// C program to check whether two strings are anagrams
#include <stdio.h>
#include <string.h>
void quickSort(char *arr, int si, int ei); //Function declared for sorting a string
bool areAnagram(char *str1, char *str2) //Function che
A common problem encountered during SQL server development is to check if a particular table exists or not. There are different approaches to solve this problem and in this blog we will list out these approaches. For illustration purpose we will be u
Hi, In this blog I tried to provide an efficient solution for a famous coin exchange problem using dynamic problem in bottom up approach whose time complexity is O(mn).
Problem Definition
In coin exchange problem you can think of a coin v
Cordova provides cordova-plugin-network-information that checks the cellular and wifi connection of the device and also it can check the internet connection.
Installation:
To install this plugin run the following command
cordova plugin add
What is IP Address ?
IP is an address which is given to each and every device in a network.
It's a logical address given to devices in a network.
It Works in Network layer
IP Versions:
1> IPv4
- 32 bits(represented by 0 and 1)
- IP a