Jump to content

selecting rows


amos11

Recommended Posts

Hi

 

can i find out if it is possible to retrieve rows from my tables in the database but display them as hyperlinks which can lead to a page (can it be just 1 page that allows values to be inserted into?) that allows charts (using highcharts) or so to be created based on the values passed from the database? Sorry if this is a stupid question. I'm new to this and I'm exploring ways to present my data. Thanks!

Link to comment
https://forums.phpfreaks.com/topic/286966-selecting-rows/
Share on other sites

Both are certainly possible.

 

How you do it would depend on your data, how you want to link the pages, the charting software you are planning to use.

 

Your question is far to broad at the moment for a more detailed response but so long as you properly normalize the data in your db then you should be OK for most things.

Link to comment
https://forums.phpfreaks.com/topic/286966-selecting-rows/#findComment-1472606
Share on other sites

Thanks. I'm trying to research for tutorials and stuff on them but I'm not sure what to really look out for. I would think that my data are normalised. Can i trouble you to enlighten me on search terms that i can use to research on the bit about displaying the retrieved data as hyperlinks that point to a page for data visualisation?

 

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/286966-selecting-rows/#findComment-1472686
Share on other sites

figured out that i can:

 

while($row = mysql_fetch_array($result))

  {
  echo '<tr>';
  echo '<td><a href="sales.php">' . $row['S_Id'] . '</a></td>';
  echo '<td>' . $row['S_Type'] . '</td>';
  echo '<td>' . $row['S_Title'] . '</td>';
  echo '<td>' . $row['S_Date'] . '</td>';
  echo '</tr>';
  }
echo "</table>";
 
But how do i send the data to the php page so that it can use the data and create the charts accordingly? I'm looking at using highcharts. Thanks!
Link to comment
https://forums.phpfreaks.com/topic/286966-selecting-rows/#findComment-1472692
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.