
Search In
I'm manually setting ngModel.$setValidity, I'd like to pass some data along with the error flag, to be displayed in ngMessages directive. For example let's assume the min/max length of the field depends upon some external factors, thus is computed &a
Hello Reader's If you want to make user redirect and show him the error message on next page then by using codeigniter you can do by following functions:-
Let's say if user input wrong username/password then you'll redirect user by following code of
In PHP, To perform any data task in MySQL database , first we have to connect MySql database to local server
This can be done as :
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
$conn = new
SQL Server has an exception model to handle exceptions and errors that occurs in SQL statements. To handle exception in Sql Server we have TRY..CATCH blocks. In Sql Server, against a Try block we can have only one CATCH block.
Ex;
BEGIN TR
To set the camera flash on or off in ios Use the code below:
-(void)setFlashMode:(AVCaptureFlashMode)flashMode forDevice:(AVCaptureDevice *)device
{
if ( device.hasFlash && [device isFlashModeSupported:flashMode] ) {
NSErr
Hello Nerds,
I am using AdMob, an account associated with AdSense for advertising my application on mobile, whenever I'm trying to login to AdMob account then, I'm getting 403 Error on the screen and some times it goes away.
&
Hello reader's!
Today we discuss about "Creating Photo album gallery to your WordPress."
Recently, we had a person who wanted us to create a photo gallery combine with albums. He wanted that if any user click on the album then he able to see phot
If you are setting up RoR on a system, and while installing RVM you get an error like
curl: (7) Failed to connect to get.rvm.io port 443: Network is unreachable
this is due to mis-configured ipv4 & ipv6.
As you already know that RVM i
You can use PHP to take backup of a table in MySQL. For this, you need to write the following code:
$dbhost = 'localhost';
$dbuser = 'dbusername';
$dbpass = 'dbpassword';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(! $conn
Crud used to creates a new record for the model.
The new record is initialized using the values from vals and if necessary those from default_get()..
browse([ids]) → records:
Returns a recordset for the ids provided as parameter in the
