
Search In
<?php
session_start();
include_once('config.php');
$user=htmlentities(stripslashes($_POST['username']));
$password=htmlentities(stripslashes($_POST['password']));
// Some query processing on database
if(($id_user_fetched<=$id_max_fetched)
Transaction anywhere is used to execute or stop set of statements.
BEGIN TRANSACTION trans
BEGIN TRY
INSERT INTO Department(DeptID,DeptName,Location)VALUES(2,'HR','Delhi')
INSERT INTO Employee(EmpID,Name,Salary,Address,DeptID)VALUE
You can create your QR Code using the PHP QR Code library. Download the QR Code library and include in your script file.
Example:-
<?php
include "phpqrcode/qrlib.php";
// create your QR Code with new text and display it
QRcode::png("Test QR Co
The best way to clone an object in javascript is to use $.extend(). We can use it in two ways:-
1.Shallow copy
2.Deep copy
1.The syntax for shallow copy is: var newObject = jQuery.extend({}, oldObject);
2.The syntax for deep copy is: var newObjec
PHP Copying, Creating & Deleting files
Copy file using PHP:- In PHP when we want to copy our file from source to destination then we have to use following syntax.
Syntax:
Bool copy (string $source, string $destination);
Example:
Echo Copy (
Hello all,
In C#, we use delegates, which are nothing but the type safe function pointer which means that a delegate points to a function and whenever we invoke the delegate, it will call the function for which it holds the reference.
The signature
PDO is PHP Data Objects which is used to connect to any database. Benefit of using PDO is that if there is any problem in our query it has an exception class to handle it. If any exception thrown to the try block, the script stops and directly flows
MySQL Temporary tables:
A temporary table allows a user to store temporary records and we can use these records several times until the session does not expire. They are useful in those situations when it is expensive to write a query having singl
Remember Me using Cookie
We can remember username and password by using Cookie. As we know cookie resides in a browser and used to store user data and other informations.
We will remember username and password by using cookie when user check the re
In OpenERP rpc help to change the post, like user want to excute two server in same systems then use rpc and change port number of other server. Basically rpc is used to run server in local systems.
Use this function given below
def rpc(service_na
