
Search In
Redirecting a web page will occur in the header part of the page.
In JQuery the page redirect have a code and it will go like this below
// similar behavior as clicking on a link
window.location.href = "http://findnerd.com";
As soon this script co
Hello reader's!
On a given number format if you want it to be customize like a figure with separated by (,)
like 128,347,556. By using a function and in the function we will Preg Match the string with every hundreds and thousands
You can use the co
Inserting data using JDatabase:
JDatabaseQuery class includes methods such as insert(), columns() and values() to insert data.
For example:
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(
SQL Copy Table
If you want to copy a SQL table into another table in the same SQL database then you can do with the copy statement .
Syntax ->
select * into destinationTable from sourceTable ;
Example ->
**Student name** **St
While making the calculation with float variable one should really careful since there can be three cases, It can < or > or =. So lets see the example below and learn how to get the comparative.
$varOne = round(0.250, 3);
varTwo = round(1 - 0
For make data more readable YII provide a application component name as 'formatter' by using this we can format our date,numbers,email.
How to use
$dataFormatter = \Yii::$app->formatter;
echo $dataFormatter->asDate('2016-01-01', 'long');
Suppose you have two strings and you need if they contains same words. Then in this case you have to use 'strName.indexOf' function.
Let's consider the example below:-
var MyString= "I'm explaining string match on findnerd portral";
var Find = My
ORDERBY alters the order of the specified column into the table by giving there fields name and arrange them in desc as well as asc ordering but default ordering is asc while in GROUPBY aggregates the records by the specified column which allow to
If you want to print the html tags and code inside the PHP code you can do it by putting all the html code inside the echo syntax:-
Consider the following two cases:-
1. In between PHP tags
<?php if(condition){ ?> //In this case the html cod
If you would like to convert .ppk file into .pem file, the process are given below:
1) Open terminal and make your login
2) sudo apt-get install putty-tools
3) puttygen /var/www/html/abc.ppk -O private-openssh -o /var/www/html/abc.pem
4) chmod 400
