Jump to content

popunonkok

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by popunonkok

  1. Hi I have a local Wamp server running. root password is set to standard "blank" (none). Now I want to put this online. Is there any tutorial out there (I cant seem to find one) that cover some standard security measures for running MySql server. Such as, how to change the password and still be able to use PhpMyAdmin. What are the different users settings? How does a typical php document look were you store the login info in a different doc, is it just a simple include? And so on... Any help is appreciated
  2. Hi Im plotting a graph using JPGraph. The first plotted line uses $data as its source. It works like a charm, I collect the data from a MySql database. However, now I want to plot a new line. I want that line to use the same data but I want to add each value to the value before and so on. This is my code that dosent work. while ($row = mysql_fetch_array($result)) { $data[] = $row['EF0000000DBBDD1D']*6/1000; $data1[] = strtotime($row['DATETIME']); $data2[] = $data2 + $data; } echo "-----------------------------"; print_r ($data); print_r ($data2); The result Im looking for is this: $data = 2, 2, 2, 2, 2, 2, 2, 2, 2..... $data2 = 2, 4, 6, 8, 10, 12, 14....... I thought that this should be easy but I just cant seem to find the answer. Any help is appreciated.
×
×
  • 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.