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

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 for diafol

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

Be a part of the DaniWeb community

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