
Search In
FIELD(str,str1,str2,str3,...)
FIELD function is used to get the index (position) of str in the str1, str2, str3, ... list and it returns 0 if str is not found. In the field list if all arguments are strings then all arguments are compared as strin
Hi Readers,
Today I will be discussing about the limitation of virtualfields and how can we overcome it's limitations. Firstly, we can not use virtualfields in associated models for conditions,fields arrays or order. Doing so will generally an SQ
Hello Friends, Some time we get stuck when a scope is terminated and found that two similar destroy events are triggered. Here we want to understand What and why are they two used for in angular js.
The first one is an Angular jS event, $destroy, an
Many times in application development using C# it is required to get the directory from a file's full path.
Let us say we need to find the directory for the following path:
string path = @"C:\Directory\File.txt";
If the requirement is to get t
First of all see the following program::
public class Hello{
static{
System.out.print("Hello! Running Java program without main method.")
System.exit(0);
}
}
The output of above program will be::
Hello! Running Java progra
#include<stdio.h>
int maxDiff(int a[], int n)
{
int maxDiff = -1; // Initialize Result
int maxRight = a[n-1]; // Initialize max element from right side
for (int i = n-2; i >= 0; i--)
{
if (a[i] > maxRight)
// C++ program to count no of words from given input string.
#include <stdio.h>
#define separator 0
#define word 1
unsigned countWords(char *str) // returns number of words in str
{
int state = separator;
unsigned wc = 0; // word count
w
How to read and write session:
Yes this is the basic question in which I got stuck when I was new to cakephp 3.0. I tried to find out the answer through google, stackoverflow and I finally found the answer to it. In order to read and write sessions
I was facing issue to post data by a form to foreign domain. I am aware of "AJAX cross-domain policy". So we just can't call "http://yahoo.com" over ajax http request and display the results on my page. So after researching I
It is basically the process of catching the error that occurred in the program and then taking an appropriate action.
It is very simple to handle the error in php.
While writing the program we should check all the possible error condition bef
