Dhaka To

  1. Home
  2. Code

Category: Code

How to Generate String Unique Number Using MD5 and Unique ID in PHP

How to Generate String Unique Number Using MD5 and Unique ID in PHP

How to Generate String Unique Number in PHP In php have a unique id function to generate unique id, but this system can’t given proper result all time . This is my personal observation. If…

Read More
FPDF Problem Variable in Header or Footer Function Scoping Problem

FPDF Problem Variable in Header or Footer Function Scoping Problem

Sometime you face scoping problem in FPDF. Example: $party = $_POST['name']; class PDF extends FPDF { function Header() { $this->Cell(150); $this->Cell(30,10,$party,0,0,'C'); } } Here Party name not show because of scoping problem. To solve this…

Read More
Mysql Query for Generate Serial Number in SELECT Statement

Mysql Query for Generate Serial Number in SELECT Statement

Simple way to make it happen. Follow this example: Table Name : purchase Fields : party, amount, purchase_id (primary key) Query : “select party ,amount ,ROW_NUMBER() OVER (order by purchase_id)as serial from purchase” or “select…

Read More