How can i get result between two date from database where date is in unix timestamp.How can i use WHERE clause to get result.I required in a project.

How can i get result between two date from database where date is in unix timestamp

// result in seconds
$difference = $date2 - $date1

Convert seconds to whatever you want.

How can i use WHERE clause to get result.I required in a project

What is the SQL now, what are conditions?

Member Avatar
diafol

BETWEEN ... AND ... structure in WHERE clause?