The code is printing to the excel sheet, but now only one field is printing. I thought with the foreach statement the entire row would print. Here is the code, any suggestions? Thanks.
<?php session_start();
$_SESSION["ReportData"];
?>
<?php
foreach($_SESSION as $line) {...
Ok...so i changed the code again. This time I am no longer querying the db b/c according to print_r all of the session variables are being exported to the spreadsheet.
Here is what I have so far
<?php session_start();
$ID=$_SESSION["ReportData"];
?>
<?php
$line = '';
foreach($ID...
Yes, I have tested all the code. The information submitted on the 'PfrReports.php' form is displayed on the 'displayReportData.php' page.
On the tryexcel.php I started another session and created a variable 'PerformanceID' which is equal to the session variable 'ReportData'.
When I run the...
Here is the code for the form 'PfrReports.php' which submits to the 'displayReportData.php'.
<?php session_start();
$PfrDate =$_SESSION["PfrDate"]=$_POST["PfrDate"];
?>
<html>
<head>
<title>Displaying MySQL Data</title>
</head>
<body>
<?php
$db_host = "????";
$db_user = "???";
$db_pwd =...
I am trying to export contents from a php page to an excel spreadsheet. I am not an expert so my code may not be as sophisticated. For some reason the variables from the previous page are not posting even though I have created a session and listed the variables. Here is the code for the page...
Instead of generating dynamic graphs I have decided to export the data to an excel spreadsheet.
The catch is that I only want the data that has been selected using checkboxes on a previous page to be exported to the spreadsheet.
With the code I am using I can generate the excel sheet but the...
I need to display selected data from a mysql database in basic line graphs using php. I am open to using excel but thought I saw something about php having a tool called jgraphs.
To give you a little background info about my application:
1. Users can search the databases by date. They...
yes this is what i am trying to do. I would like for the user to be able to select an item, receive a confirmation displaying what they have selected.
finally, this information will be sent to an excel spreadsheet to create a graph.
Can you help me?
I tried the following, but I am still seeing the same results.
<?php session_start();
$_SESSION["ReportData"]=$_POST["ReportData"];
$_SESSION["HandleName"]=$_POST["HandleName"];
?>
<form action="insertPfrGraph.xls" method= "post" name="FormName">
<html>
<body>
<table>
<table border='1'>...
I tried that code as well as this variation:
foreach ($_POST['ReportData'] as $cbox=>$cboxvalue):
$HandleName= {$_POST["HandleName"][$cbox]};
$LoadName= {$_POST["LoadName"][$cbox]};
echo "<tr><td><?php echo $_POST["HandleName"]; ?></td>
<td></td><?php echo $_POST["LoadName"]; ?></td></tr>"...
I have a page that displays output from a mysql query in a table. I added checkboxes to each row. If the checkboxes are checked when I click the submit button I would like to take the data for just the rows that are checked and send that information to an excell spreadsheet.
The problem is I...
I have a page that displays output from a mysql query in a table. I added checkboxes to each row. If the checkboxes are checked when I click the submit button I would to take the data for just the rows that are checked and send that information to an excell spreadsheet.
The problem is I don't...
I'm creating an online form connected to a MYSQL database. The database will have 4 tables (Handle, Load, Server, and Performance).
The database will be populated by information entered in the form. I want to create a relationship between
Handle-->Performance
Load--->Performance...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.