Hello,
Been pulling my hair out over this one.
First.. I can't figure the arrays out... but this is what i seek.
I have a table with just two columns, date and count.
I want to fill an array like this;
$data = array(
"Jan" => 55,
...
"Dec" => 71);
but the from a table.
Tried it with;
$db = mysql_connect("h","u","p");
mysql_select_db("db1",$db);
$result = mysql_query("SELECT * FROM table", $db);
$num_rows = mysql_num_rows($result);
Laat alleen de laatste week zien
$show_rows = $num_rows - 7;
$result2 = mysql_query("SELECT * FROM table LIMIT $show_rows,-1");
$data = mysql_fetch_array($result2);
What am I doing wrong....
If someone could help me out on this one....
I'll send u a x-mas card :o)
Thanks in advance