
Search In
In yii we can create our basic code for 'CREATE',,'UPDATE','READ','DELETE' operations. for enable this functionality we need to enable curd.
For enable curd go to your main.php file and find keyword 'gii' and you will see like this
/* 'modules'=&
Hello Reader!
Getting last the key index of any array PHP can be done on several ways as follows:-
Lets consider an example array $MyArray
$MyArray = array(
'one' => firstelement,
'two' => secondelement,
'three' => lastelement
All of us have been writing some kind of cron but recently we came a situation where cron has to be fired by weekly on Wednesday. Keeping in mind the client requirement we came to a particular solution.
Minute Hour date-Of-Month Month Day-Of-Week /p
Basically Infinity property is a numeric value i.e represent the undefined value .
If the value of infinity is very-very small and negative then it would be negative infinity .
If the value of infinity is very-very large and positive then it would
Count ( ) In SQL Database this is a function which return no of rows from a table in Database . Generally this is used in SQL select statement and count the no. of records in a table .
Syntax ->
select count ( expression_name ) from table_name w
Hello Reader!
If you want to read a Excel file in PHP then you can learn the library code below
read('excel_file.xls'); // reads and stores the excel file data
// Test to see the excel data stored in $sheets property
var_export($excel->sheets
If you want image slider using Javascript then you can use below code .
CSS Code :
<style type="text/css">
// to make a gap from top
body {
margin-top: 100px;
}
// give styling to list
.navlist ul li{
If you want to customize seekbar in Android then follow the steps mentioned below:-
1) To customize seekbar background create a new xml file in your project's drawable folder .
seekbar_background.xml
<?xml version="1.0" encoding="utf-8"?>
&l
Recently, I faced a problem when the date was saved in different fields month, year and date. I need to club all these fields together and run a between query on it.
Another issue which was there was that Date has '0' contacted if the value is less
Using sort method we can sort any string, numbers, even classes either in ascending order or descending order .To sort an array ,you need to compare its element using <, >, <=, >= .
return -1 if x < y
return 0 if x = y
return 1 if x &
