Hi
Im looking for some help creating a graph using the google chart API
I have some idea of how i want to code it, but i need help turning psuedo into real code.
I have a database with site users. Each user has a date that they joined. I want to count how many people join on each date, then put this into a string for the google chart API url.
im thinking something like this, but need some help:
Set up DB connection etc...
select date from site_users, count and group by date_joined under column called 'number', as to give a 2 column table result -> Date and Number of joins.
while (sql query){
$date .= $row['date_joined']."|";
$number .= $row['number']."|";
}
construct google chart url
$url = "www.google.cometc...".$date."&".$number;
<img src=".&url." alt="chart" />
Some help would be great, i think the part im struggling with is the sql statement.
Thankyou