
Search In
In PHP, to create database in MySQL functions mysql_create_db() or mysql_query() is used. To create database using mysql mysql_create_db() syntax is as follows:
mysql_create_db($dbname);
For example:
Suppose we want to create a database demo.
Cr
PDO is PHP Data Objects which is used to connect to any database. Benefit of using PDO is that if there is any problem in our query it has an exception class to handle it. If any exception thrown to the try block, the script stops and directly flows
$,ajax() allows to make an ajax call.
This method provide more control than any other method.
In the ex below all the parameters and comment related to each parameter describe the purpose of each one.
var ajaxUrl = "Json.htm";
$
It is not possible to have two db queries in model hook of ember js router. You can either create two router files- one for fetching the new records from database and the another one for fetching record.
That is not a good approach to create two ro
iOS 8 SDK by Apple provides Local Authentication API that allows developers to integrate Touch Id authentication in applications.
To integrate Touch Id authentication follow the below steps:
Import Local Authentication framework in your controlle
Finally, you’ve decided to quit your job and want to become your own boss. But your mind is filled with apprehensions about whether or not you’ll be successful.
Thomas Edison said, "The value of an idea lies in the using of
Sir Richard Branson once said: “You don't learn to walk by following rules. You learn by doing, and by falling over.” Indeed, he is one of the most prominent examples of an entrepreneur who faced big trouble but recovered every time b
A callback is a function which is highly used in node js. When we want to run any task after the success or completion of a given task then we will use a callback. We will write maximum API in such a way that they will support callback.
I will expla
Hello
Today I am going to discuss about the use of WebSql in Phonegap.
In Phonegap, if you want to store data locally on device, Web SQL can be used. Most of the sql queries can be performed in Web sql using method openDatabase that takes 4 argumen
Write a file Using Php
In PHP, there are many functions available which is used to write a file.
The functions are...
fwrite(), fputs(), file_put_contents
Syntax:
fputs-
fputs($file,$string,$length);
fwrite-
fwrite($file,$string,$length);
T
