Jump to content

[SOLVED] Not sure how to title this


timmah1

Recommended Posts

I grab information from the database that matches the current month, then I put the days into an array like so

$days[] = date("d", strtotime($charts['posted']));

 

Then I implode them to make put marks on a graph

$day = implode(',', $days);

 

Works great.

 

But what I want to know is, how can I find out what the first day in the database is?

Right now, the database has the days 11 through 29, but I need the code to be able to only show the first number, which would be 11 in this case, then I'll do some math stuff to fill in the gaps on the graph.

 

So basically what I need to know is, with the following code

$days[] = date("d", strtotime($charts['posted']));
$day = implode(',', $days);

 

How do I find out the first number?

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/143039-solved-not-sure-how-to-title-this/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.