
Search In
Hello readers!. If you having the much of redundant/duplicate data growing in your database you can delete it with just a single query as I wrote here.
Let say I have a table Address and want to delete the all the duplicate records whose city colum
If you need to get some limited key values of an array then you can use function array_slice used in PHP
Let see the example I'm having an array of 400+ values
$exp = array("34", "45", "45", "554", "2".......);
Now I'm limiting my this $exp arra
Combining of multiple using to add up one single can be achieve by various ways
In PHP you can either join then by using (.) Concatenate Operator or by using String Interpolation:
We'll do both of way here
Let's consider two stings
$one_string =
Welcome to The Internet of Compromised Things
This post is a bit of a public service announcement, so I'll get right to the point:
Every time you use WiFi, ask yourself: could I be connecting to the Internet through a compromised router with malwar
hi friends
Earlier, i wrote how main method is executed by JVM. Here i have posted, why main() is public static.
Correct meaning of public static void main()
public : it is visible to all. (so that main is accessible by JVM & other classes)
s
SQL Truncate Table
Using this statement you can remove all data of rows or column ( complete data ) not table. In this there is no where clause but where clause is available in Delete statement. Truncate table is faster than Delete statement
Note -
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
On converting the given time in seconds you have to follow the calculation in days and hours etc. Using PHP you can get the format by using the code below:-
Here I created the function ConvertToSec ($sec) as param:
function ConvertToSec($sec) {
Pointer is a variable which stores address of another variable. It points to an address of a value.
Pointers in C language is declared using * i.e. asterik symbol.
int *i;//pointer to int
char *ch;//pointer to char .
Example
#include <stdio.h&
Both the ' and " are same and does same function but it's just the coding standard followed by coders
Using double quotes for HTML
i.e.
<div class="colorFont"></div>
Using single quotes for JavaScript
i.e.
$('#container').addClass(
