Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

FIELD string function mysql

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

Cakephp putting condition on virtualFields

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

What happen when scope is terminated in angular js?

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

C# : How do I get the directory from a file's full path ?

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

How to run a program without a main metod in JAVA?

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

Efficient method to find maximum difference between two elements in C?

#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)

Program to count no of words from given input string.

// 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

Cakephp 3.0: How to read and write Session

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

How to do AJAX cross domain calls ?

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

Error handling php

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

1 46 115
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: