rbxlmadx
Member
- Messages
- 32
- Reaction score
- 1
- Points
- 8
I am trying to create a user chart for my site, I am using Google chart, the url, and I have made a database to edit the url, in this bracket ((((( ))))) in the url, is the numbers I want to edit, using a number from my database. Here is the problem, I am trying to fetch the number from the database but I can't define it like this:
mysql_query("SELECT * FROM days WHERE one='1'");
Because The numbers update with every new users, so I tried this:
mysql_query("SELECT one FROM days");
But that does not work. And for more info, the urn of the Google chart is not in a PHP script: <?php ?> so IDK if I can put $one or whatever in to the url. I do not know what to do....
<center><img src='http://chart.googleapis.com/chart?c...0|1:|0|25|50|75|100|2:|||3:||Days|'></center>
<?php
$one = mysql_query("SELECT one FROM days");
$id1 = $_GET['one'];
$Aa = 0;
$Getone = mysql_query("SELECT * FROM days WHERE one=one + ".$Aa."");
$one = mysql_num_rows($Getone);
$Gettwo
$Getthree
$Getfour
$Getfive
$Getsix
$Getseven
$Geteight
$Getnine
$Getten
$Geteleven
$Gettwelve
$Getthirteen
$Getfourteen
$Getfifteen
$Getsixteen
$Getseventeen
$Geteighteen
$Getnineteen
$Gettwenty
?>
mysql_query("SELECT * FROM days WHERE one='1'");
Because The numbers update with every new users, so I tried this:
mysql_query("SELECT one FROM days");
But that does not work. And for more info, the urn of the Google chart is not in a PHP script: <?php ?> so IDK if I can put $one or whatever in to the url. I do not know what to do....
<center><img src='http://chart.googleapis.com/chart?c...0|1:|0|25|50|75|100|2:|||3:||Days|'></center>
<?php
$one = mysql_query("SELECT one FROM days");
$id1 = $_GET['one'];
$Aa = 0;
$Getone = mysql_query("SELECT * FROM days WHERE one=one + ".$Aa."");
$one = mysql_num_rows($Getone);
$Gettwo
$Getthree
$Getfour
$Getfive
$Getsix
$Getseven
$Geteight
$Getnine
$Getten
$Geteleven
$Gettwelve
$Getthirteen
$Getfourteen
$Getfifteen
$Getsixteen
$Getseventeen
$Geteighteen
$Getnineteen
$Gettwenty
?>