Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

stats_sales_csv


apache510

Recommended Posts

I can not get this contribution to work correctly. I have narrowed the problem down to one file, the admin/stats_sales_csv.php file.

 

The section that I can not get to work is the following section:

 

<form action="<?php echo $PHP_SELF; ?>" method="post" name="reportit">

<table border="0" width="60%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading" width="500" nowrap><?php echo HEADING_TITLE; ?></td>

<td class="main" align="right"> </td>

</tr>

<tr>

<td class="main" align="left" colspan='2'><BR><BR><?php echo TEXT_FACTOR . ":";?>  

<select name = "multiplex">

<option value="10" <?php if ($multiplex == 10) echo "selected";?>>10</option>

<option value="25" <?php if ($multiplex == 25) echo "selected";?>>25</option>

<option value="50" <?php if ($multiplex == 50) echo "selected";?>>50</option>

<option value="100" <?php if ($multiplex == 100) echo "selected";?>>100</option>

<option value="500" <?php if ($multiplex == 500) echo "selected";?>>500</option>

<option value="1000" <?php if ($multiplex == 1000) echo "selected";?>>1000</option>

<option value="10000" <?php if ($multiplex == 10000) echo "selected";?>>10000</option>

</select>

<input type="submit" name="Submit" value="Submit">

</td>

</tr>

</table>

</form>

</td>

</tr>

<?php

if ($multiplex != '') {

 

The problem is that the varible $multiplex never gets a value so the code never executes.

 

I have gone in and added the code:

 

<?php $multiplex = 10; ?>

 

Right before the varible $multilex is checked so that I can get the graphs.

 

Anyone have any idea why this will not work?

Link to comment
Share on other sites

Solved the problem. Apparently the contribution was missing a line of code. I inserted the following:

 

$multiplex = $_POST["multiplex"];

 

Right be for the line:

 

if ($multiplex !='') {

 

So it looks like this:

 

<?php

$multiplex = $_POST["multiplex"];

if ($multiplex !='') {

 

Now it works perfectly!!!

Edited by apache510
Link to comment
Share on other sites

Solved the problem. Apparently the contribution was missing a line of code. I inserted the following:

 

$multiplex = $_POST["multiplex"];

 

Right be for the line:

 

if ($multiplex !='') {

 

So it looks like this:

 

<?php

$multiplex = $_POST["multiplex"];

if ($multiplex !='') {

 

Now it works perfectly!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...