loop2 Please Wait...
DeveloperGang

Write a program using while loop

$my_query = mysql_query("SELECT * FROM 'users' WHERE 'id'='1'; "); while($result = mysql_fetch_array($my_query)) { echo $result['First_name']; }

what types of loops exist in php?

In PHP, we have the following looping statements: while - loops through a block of code as long as the specified condition is true do...while - loops through a block of code on...

What is Open Source Software?

Software in which the source codes are freely used, modify, and shared by anyone are called Open Source Software. These can also be distributed under licenses that adhere with the...

How to create a session? How to set a value in session ? How to Remove data from a session?

Create session : session_start(); Set value into session : $_SESSION['USER_ID']=1; Remove data from a session : unset($_SESSION['USER_ID'];

What is the difference between Session and Cookie?

The main difference between sessions and cookies is that sessions are stored on the server, and cookies are stored on the user’s computers in the text file format. Cookies ca...

How to set cookies in PHP?

Setting new cookie ============================= Getting Cookie ============================= Updating Cookie ============================= Deleting Cookie =...

How to declare an array in php?

Just Follow the Below example::: Eg : var $arr = array('apple', 'grape', 'lemon');

require_once(), require(), include().What is difference between them?

require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page). So, require_once() is recommended to us...

What are some of the big changes PHP has gone through in the past few years?

There are a number, but the big ones people are looking for are: a. PHP 5.0 realised the object model (AKA OOP). b. 5.1 added PDO - for accessing databases. c. 5.3 - added name...
Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga, aspernatur.