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.

Recommended Answers

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.

Jump to Post

All 4 Replies

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.