Jump to content

$_SESSION['rows'] unsetting upon submit...


billyp1970

Recommended Posts

Driving myself nuts...can't figure out what is wrong with this code.  This is part of a pagination system that uses an array instead of hitting the db each time.  I am using CodeLobster PHP version (3.7), Windows 7, and using a virtual server on my computer for development (XAMPP)

 

the error I get is this:

Warning:  Invalid argument supplied for foreach() in C:\xampp\htdocs\website\searchinv.php on line 45

 

Warning:  array_multisort() function.array-multisort: Argument #1 is expected to be an array or a sort flag in C:\xampp\htdocs\website\searchinv.php on line 49

 

Warning:  array_slice() expects parameter 1 to be array, boolean given in C:\xampp\htdocs\website\searchinv.php on line 108

 

Warning:  Invalid argument supplied for foreach() in C:\xampp\htdocs\website\searchinv.php on line 146

 

 

I am pasting the code below and point out each of the lines in the warnings above, and will try to clean up some so that it's not too extensive...

 

Here is the problem:  If I click on any of the "page" $_SESSION['rows'] has all the correct information contained in it.  However, if I trigger the "re-sort" select option...$_SESSION['rows'] is empty...all my other $_SESSION variables are still there.  At first I thought it was an issue with too many "if/ifelse/else" statements or a wrong syntax...so I changed it to a "switch" and traced it closely.  I don't see anything wrong.  Next I thought it was caused by the JavaScript "onchange" event...so I took that out...and replaced it with just a submit button...same result.  I've done a search on the page for EVERY $_SESSION['rows'] and found only 4 and none of them should blank it out...I've been going crazy on this code for 2 days I'm pulling my hair out now...can ANYONE help?

  if(!empty($_POST))
    { 
  if(empty($_POST['page']))
    {
	  switch($_POST)
	    {
		  case (!empty($_POST['ref'])):
		    $deleted=sql_ending($_POST['del']);
		    $rows=select_from_database('inventory', '*', 'ref_number=\''.$_POST['ref'].'\' and '.$deleted);	
		    break;
		  case (!empty($_POST['type'])):
		    $sort=$_POST['sort'];
		    $deleted=sql_ending($_POST['del']);
			if($_POST['type']!='*')
    		                  {
    	  	            $type=$_POST['type'];
	    	            $len=strlen(trim($type));
		            if($len!=1)
		              $type=$type.'-';  
    			              $end=$deleted.' and ref_number like \''.$type.'%\'';
    	                  }
			else
			    $end=$deleted;
    		                $rows=select_from_database('inventory', '*', $end, $sort);
			break;
		  default:
	            $data=$_SESSION['rows'];
		    $sorts=explode(' ', $_POST['sort']);
		    $keys=$sorts[0];
		    $order=$sorts[1];
Line 45 -->           foreach ($data as $key => $row) 
		      { 
                                $column[$key]=$row[$keys];
                               }
Line 49 -->           $rows=array_multisort($column, $order, $data);
		    break;
	    }	  
                  $_SESSION['rows']=$rows;
    }
  $x=count($_SESSION['rows']);
  if(isset($_SESSION['admin_user']))
      $width=1280;
  else
      $width=900;
  $srch_rslt= '            <div id="displaybox">
              <div id="translucent"></div> 
              <div id="result" style="width:'.$width.'px;">
              <!--[if lt IE 7]>
                <h3 class="center">This site looks much better with IE 7 and above.  Please consider upgrading <a href="browsers.php">HERE</a>.</h3>
              <![endif]-->
';
  if($x==0)
      $srch_rslt.='                <h3>Search Result</h3> 
                <a style="display: block; margin-right:10px;" href="searchinv.php" title="Close this box.">Close <img src="images/close.png" alt="Close this box." /></a>
                <p>We are sorry, but we currently do not have the equipment available for the given search.  Please go back and <a href="searchinv.php" title="Search Again">search again</a>, or <a href="mailto:mywebsite@mywebsite.com" title="Send us an email so we can locate the equipment you need." onclick="popup(\'email.php?title=pray\', \'Request for Equipment\', 500, 500); return false">contact us</a> so we may begin to utilze are vast resources to locate your needs.
              </div>
             </div>
';
      else
    {
	  if(empty($_POST['page']))
	      $pg=1;
	  else 
	      $pg=$_POST['page'];
      $page=($pg-1)*20;
      $_SESSION['pages']=ceil($x/20);
	  if(!$_SESSION['pages']>1)
	      $buttons='<button type="button" class="active" title="Page 1">1</button>
';
	  elseif($pg>1)
	    {
		  $prev_pg=$pg-1;
	      $buttons='<button type="submit" class="button" title="First" value="1" name="page"><< First</button>
                              <button type="submit" class="button" title="Previous" value="'.$prev_pg.'" name="page">< Prev</button>
';		
		}
	  for($i=1; $i<=$_SESSION['pages']; $i++)
	    {
		  if($i==$pg)
		      $buttons.='                              <button type="button" class="active" title="Page '.$pg.'">'.$pg.'</button>
';
		  else	  
		      $buttons.='                              <button type="submit" class="button" title="Page '.$i.'" value="'.$i.'" name="page">'.$i.'</button>
';
		}
	  if($pg<$_SESSION['pages'])
	    {
		  $next_pg=$pg+1;
	      $buttons.='                              <button type="submit" class="button" title="Next" value="'.$next_pg.'" name="page">Next ></button>
                              <button type="submit" class="button" title="Last" value="'.$_SESSION['pages'].'" name="page">Last >></button>
';		
		}

Line 108 -->  $results=array_slice($_SESSION['rows'], $page, 20, true); 
      $srch_rslt.='                <h3>Search Complete!</h3>
                <a class="close" href="searchinv.php" title="Close this box.">Close <img style="border:none;" src="images/close.png" alt="Close this box." /></a>
                <p>You may now browse, re-sort and download your results in either PDF or an Excel format.</p>
';

        if (isset($_SESSION['admin_user']))
	    $table = 1260;
	else
	    $table = 880;
	$tableinner = $table-20;	
      $srch_rslt.='                <form name="search_page" method="post" action="searchinv.php?search='.$_POST['search'].'">
                  <div style="border:2px solid #00000; width:'.$table.'px;">

           /* there's a table here */
';
          $y=0;
Line 146 --> foreach($results as $result)
            {
              $y++;			  
		  $cl_type=explode('-', $result['ref_number']);
		  $type=select_from_database('car_types', '*', 'abbvr=\''.$cl_type[0].'\'');
		  $raw_notes=$result['notes'];
        	          if ($raw_notes == NULL)
	              $notes="Call for additional information.";
        	          elseif (strlen($raw_notes) >65)
	            {
	              $txtlth=strpos($raw_notes, " ", 65);
		      $notes=substr($raw_notes, 0, $txtlth).'<span id="para'.$pg.$y.'" class="jshide"> '.substr($raw_notes, $txtlth).'</span><a class="jsunhide" href="javascript:function(){};" onclick="toggleMe(\'para'.$pg.$y.'\', \'href'.$pg.$y.'\')" id="href'.$pg.$y.'" style="text-decoration: none">...[click for more]</a>';
	        } 
		  else 
		      $notes=$raw_notes; 

          $srch_rslt.='  /*just some html output stuff */

      $srch_rslt.='                            </table>
                          </div>
                          <div>
                            <input type="hidden" name="search" value="'.$_POST['search'].'" />
                            <p class="center">
                              '.$buttons.'                            </p>
                          </div>
                        </td>
                      </tr>
                    </table>
                  </div>
                </form>
                <div class="search_menu_wrapper">
                  <ul class="sermenu">
                    <li>Need to search again?  Back to the <a href="searchinv.php" title="Do another search.">search page</a>.</li>
                    <li>Download this search to a <a href="http://www.mywebsitedowloadpdf.php?search='.$_POST['search'].'" title="Download to .pdf.">.pdf <img src="images/adobe.png" style="width:15px; height:15px; border:none;" alt="Download in Adobe PDF format." /></a></li>
                    <li>Download this search to a <a href="http://www.mywebsitedowloadexcel.php?search='.$_POST['search'].'" title="Download to MS Excel.">MS Excel <img src="images/excel.png" style="width:15px; height:15px; border:none;" alt="Download in MS Excel format." /></a></li>
                  </ul>
                </div>

 

Like I said if I click a "page" button (stored in the $buttons var and printed above)...the code works beautifully...it's when the next lines (below) are triggered that cause $_SESSION['rows'] to be empty...I just don't get it

 

                <div style="text-align:center;">
                  <form name="re_sort" method="post" action="searchinv.php?search='.$_POST['search'].'">
                  <label class="form-label-left" id="l_sort" for="sort">Re-Sort By:</label>
                  <div class="form-input">
                    <select class="form-dropdown" style="width:190px" id="sort" name="sort" onchange="this.form.submit();">
                      <option value="ref_number SORT_ASC" selected="selected"> Reference Number - Ascending </option>
                      <option value="ref_number SORT_DESC"> Reference Number - Descending </option>
                      <option value="date_added SORT_ASC"> Date Added - Ascending </option>
                      <option value="date_added SORT_DESC"> Date Added - Descending </option>
                      <option value="last_update SORT_ASC"> Date Updated - Ascending </option>
                      <option value="last_update SORT_DESC"> Date Updated - Descending </option>
';
if($_SESSION['admin'] == 10)
    $srch_rslt.='                      <option value="source SORT_ASC"> Source - Ascending </option>
                      <option value="source SORT_DESC"> Source - Descending </option>
';
    $srch_rslt.='                    </select><button type="submit" value="submit">Submit</button>
                  </div>
                  </form>
                </div>
              </div>
            </div>
            <script type="text/javascript" language="javascript">
              //<![CDATA[
                document.body.style.overflow="hidden";
              //]]>
            </script>
';	
        }
  }
  echo $srch_rslt;

 

Link to comment
Share on other sites

I placed print_r($_SESSION['rows']); above line 45...and nothing showed up.

 

After I did that I put print_r($_SESSION); and got the following:

<?php
Array
(
    [count] => 38   // This is a session var used elsewhere 
    [rows] => 
    [pages] => 1  // This one is figured in the script
)
?>

This is the dangest error I have ever encountered...I just don't get it...I'm sure it's something simple...just don't know what.

Link to comment
Share on other sites

Additionally for completeness, I also added print_r($_POST); after print_r($_SESSION); and got the following:

 

<?php
Array
(
    [count] => 38
    [rows] => 
    [pages] => 1
)
Array
(
    [re_sort] => last_update SORT_ASC // Last Update Sorted Ascending 
)
?>

Link to comment
Share on other sites

I know $_SESSION['rows'] has no value...that is the problem.  Let me see if I can clear this up and you'll see why I'm pulling my hair out.

 

I have a page called searchinv.php that loads a search form with a POST action.  When the form is submitted it is re-directed to the search page which then sees that $_POST is not empty but $_POST['page'] is empty to therefore executes the switch code above.  $_POST['ref'] or $_POST['type'] will ALWAYS be set one the first run so the "default" on the switch will NEVER be executed on the first run.  If you follow the code down after $_POST['ref'] or $_POST['type'] returns $rows from the database; $_SESSION['rows'] is then set to $rows.  Then a table is drawn showing only 20 rows at a time and also a set a buttons at the bottom for page navigation. 

 

The bottom row of buttons is set to a form that is also a post re-directing to the searchinv.php page.  The buttons have the name "page" so that this time the page is drawn $_POST is set and so is $_POST['page'] so it skips the switch code and renders the page with the information already contained in $_SESSION['rows']. This works just fine so I know that $_SESSION['rows'] has been set.

 

At the very bottom of the page below and NOT included in the "button" form is a second form which includes only a dropdown box which allows for a re-sorting of the items in the search.  This is where the problem starts.  If you decide to re-sort, it is re-directed again to the searchinv.php $_POST is not empty but $_POST['page'] IS EMPTY...so the switch code is activated...$_POST['ref'] and $_POST['type'] are both empty, so the default on the switch is executed.  $data is then set to $_SESSION['rows']...which has somehow emptied itself!

 

Because $data is empty becuase $_SESSION['rows'] is empty, the abundance of errors occurs.  My issue...I can't for the life of me see how/why $_SESSION['rows'] drops all of it's data...

Link to comment
Share on other sites

I'll repost the code with better alignment...

<?php
  session_start();
  date_default_timezone_set('America/New_York');
  session_name('mywebsite');
  require_once('main_fns.php');

  do_html_header('Search Equipment');
  echo '              <p>This is the page where you can search our Rolling Stock and Power equipment currently available.  This list is constantly being updated, so be sure to check back often.</p>
              <img style="float:left; margin:0 20px 0 0;" src="images/search.jpg" width="150" height="150" alt="Searchpicture." />
              <p>You have the option of doing a search for a specific reference number, a specific type or everthing available.  You also have the option of sorting your search by reference number (default), date added, or date updated.</p>
              <p>Once your search is complete, you may download it in either .pdf format, or as an Excel spreadsheet.  Additionally, you may download the desktop shortcut and have a window to our equipment 24/7.</p>
              <p>So begin your search now and find just what you are looking for.</p>
';
  select_form();
  if(!empty($_POST))
    {print_r($_SESSION);
      if(empty($_POST['page']))
        {
          switch($_POST)
            {
              case(!empty($_POST['ref'])):
                  $deleted=sql_ending($_POST['del']);
                  $rows=select_from_database('inventory','*','ref_number=\''.$_POST['ref'].'\'and'.$deleted);
                  break;
              case(!empty($_POST['type'])):
                  $sort=$_POST['sort'];
                  $deleted=sql_ending($_POST['del']);
                  if($_POST['type']!='*')
                    {
                      $type=$_POST['type'];
                      $len=strlen(trim($type));
                      if($len!=1)
                          $type=$type.'-';
                      $end=$deleted.'andref_numberlike\''.$type.'%\'';
                    }
                  else
                      $end=$deleted;
                  $rows=select_from_database('inventory','*',$end,$sort);
                  break;
              default:
                  $data=$_SESSION['rows'];
                  $sorts=explode('',$_POST['re_sort']);
                  $keys=$sorts[0];
                  $order=$sorts[1];
                  foreach($data as $key=>$row)
                    {
                      $column[$key]=$row[$keys];
                    }
                  $rows=array_multisort($column,$order,$data);
                  break;
            }
          $_SESSION['rows']=$rows;
        }
      $x=count($_SESSION['rows']);
      if(isset($_SESSION['admin_user']))
          $width=1280;
      else
          $width=900;
      $srch_rslt='            <div id="displaybox">
              <div id="translucent"></div>
                <div id="result"style="width:'.$width.'px;">
                  <!--[if lt IE7]>
                    <h3 class="center">This site looks much better with IE 7 and above.  Please consider upgrading <a href="browsers.php">HERE</a>.</h3>
                  <![endif]-->
';
      if($x==0)
          $srch_rslt.='                  <h3>Search Result</h3>
                  <a class="close" href="searchinv.php" title="Close this box.">Close  <img style="border:none;" src="images/close.png" alt="Close this box."/></a>
                  <p>We are sorry, but we currently do not have the equipment available for the given search.  Please go back and <a href="searchinv.php" title="Search Again">search again</a>, or<a href="mailto:rpaquette@mywebsite" title="Send us an email so we can locate the equipment you need." onclick="popup(\'email.php?title=pray\', \'RequestforEquipment\', 500, 500); return false">contact us</a>so we may begin to utilze are vast resources to locate your needs.
                </div>
              </div>
';
      else
        {
          if(empty($_POST['page']))
              $pg=1;
          else
              $pg=$_POST['page'];
          $page=($pg-1)*20;
          $_SESSION['pages']=ceil($x/20);
          if(!$_SESSION['pages']>1)
              $buttons='<button type="button"class="active"title="Page1">1</button>
';
          elseif($pg>1)
            {
              $prev_pg=$pg-1;
              $buttons='<button type="submit" class="button" title="First" value="1" name="page">< < First</button>
<button type="submit" class="button" title="Previous" value="'.$prev_pg.'" name="page">< Prev</button>
';
            }
          for($i=1;$i<=$_SESSION['pages'];$i++)
            {
              if($i==$pg)
                  $buttons.='<button type="button"class="active"title="Page'.$pg.'">'.$pg.'</button>
';
              else
                  $buttons.='<button type="submit"class="button"title="Page'.$i.'"value="'.$i.'"name="page">'.$i.'</button>
';
            }
          if($pg<$_SESSION['pages'])
            {
              $next_pg=$pg+1;
              $buttons.='<button type="submit" class="button" title="Next" value="'.$next_pg.'" name="page">Next ></button>
<button type="submit" class="button" title="Last" value="'.$_SESSION['pages'].'" name="page">Last > ></button>
';
            }
          $results=array_slice($_SESSION['rows'],$page,20,true);
          $srch_rslt.='                  <h3>Search Complete!</h3>
                  <a class="close" href="searchinv.php"title="Close this box.">Close  <img style="border:none;" src="images/close.png" alt="Close this box."/></a>
                  <p>You may now browse, re-sort and download your results in either PDF or an Excel format.</p>
';
          if(isset($_SESSION['admin_user']))
              $table=2035;
          else
              $table=880;
          $tableinner=$table-20;
          $srch_rslt.='                  <form name="search_page" method="post" action="searchinv.php?search='.$_POST['search'].'">
                    <div style="border:2px solid #00000; width:'.$table.'px;">
                      <table border="0" cellpadding="1" cellspacing="0" width="'.$table.'">
                        <tr>
                          <td>
                            <table border="0" cellpadding="1" cellspacing="0" width="'.$table.'">
                              <tr class="tblheader">
                                <td class="ctblheadercell"><div style="width:96px;">Ref Number</div></td>
                                <td class="ctblheadercell"><div style="width:77px;">Type</div></td>
                                <td class="ctblheadercell"><div style="width:93px;">Class</div></td>
                                <td class="ctblheadercell"><div style="width:77px;">Year<br/>Built</div></td>
                                <td class="ctblheadercell"><div style="width:53px;">Cubes/<br/>Gallons</div></td>
                                <td class="ctblheadercell"><div style="width:53px;">Load<br/>Cap</div></td>
                                <td class="ctblheadercell"><div style="width:53px;">Length</div></td>
                                <td class="ctblheadercell"><div style="width:53px;">Qnty<br/>Avail</div></td>
                                <td class="ltblheadercell"><div style="width:149px;">Notes</div></td>
                                <td><div style="width:15px;"> </div></td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                        <tr>
                          <td>
                            <div style="width:'.$table.'px; height:300px; overflow:auto; border:1px solid #000000;">
                              <table border="0" cellpadding="1" cellspacing="0" width="'.$tableinner.'">
';
          $y=0;
          foreach($results as $result)
            {
              $y++;
              $cl_type=explode('-', $result['ref_number']);
              $type=select_from_database('car_types','*','abbvr=\''.$cl_type[0].'\'');
              $raw_notes=$result['notes'];
              if($raw_notes==NULL)
                  $notes="Call for additional information.";
              elseif(strlen($raw_notes)>65)
                {
                  $txtlth=strpos($raw_notes, " ", 65);
                  $notes=substr($raw_notes, 0, $txtlth).'<span id="para'.$pg.$y.'" class="jshide">'.substr($raw_notes, $txtlth).'</span><a class="jsunhide" href="javascript:function(){};" onclick="toggleMe(\'para'.$pg.$y.'\',\'href'.$pg.$y.'\')" id="href'.$pg.$y.'" style="text-decoration:none">...[click for more]</a>';
                }
              else
                  $notes=$raw_notes;
              $srch_rslt.='                                <tr>
                                  <td class="ctblcell"><div style="width:96px;">'.$result['ref_number'].'</div></td>
                                  <td class="ctblcell"><div style="width:77px;">'.$type[0]['cat'].'</div></td>
                                  <td class="ctblcell"><div style="width:93px;">'.$result['class'].'</div></td>
';
              if($result['view']=='Yes'&&!isset($_SESSION['admin_user']))
                  $srch_rslt.='                                  <td class="ctblcell" colspan="6"><div style="width:438px;">At the owner\'s request please call for additional information.</div></td>';
              else
                {
                  $srch_rslt.='                                  <td class="ctblcell"><div style="width:79px;">'.$result['built'].'</div></td>
                                  <td class="ctblcell"><div style="width:53px;">'.$type[0]['cubes_gallons'].'</div></td>
                                  <td class="ctblcell"><div style="width:53px;">'.$result['load_capacity'].'</div></td>
                                  <td class="ctblcell"><div style="width:53px;">'.$result['length'].'</div></td>
                                  <td class="ctblcell"><div style="width:53px;">'.$type[0]['quantity'].'</div></td>
                                  <td class="ltblcell"><div style="width:149px;">'.$notes.'</div></td>
';
                }
              $srch_rslt.='                                </tr>
';
            }
          $srch_rslt.='                              </table>
                            </div>
                            <div>
                              <input type="hidden" name="search" value="'.$_POST['search'].'"/>
                              <p class="center">
                                '.$buttons.'
                              </p>
                            </div>
                          </td>
                        </tr>
                      </table>
                    </div>
                  </form>
                  <div class="search_menu_wrapper">
                    <ul class="sermenu">
                      <li>Need to search again?  Back to the <a href="searchinv.php" title="Do another search.">search page</a>.</li>
                      <li>Download this search to a <a href="http://www.mywebsite/PDF_Download.php?search='.$_POST['search'].'" title="Download to .pdf.">.pdf  <img src="images/adobe.png" style="width:15px; height:15px; border:none;" alt="Download in Adobe PDF format."/></a></li>
                      <li>Download this search to a <a href="http://www.mywebsite/mywebsite_Rolling_Stock.php?search='.$_POST['search'].'" title="Download to MS Excel.">MS Excel  <img src="images/excel.png" style="width:15px; height:15px; border:none;" alt="Download in MS Excel format."/></a></li>
                    </ul>
                  </div>
                  <div style="text-align:center;">
                    <form name="re_sort" method="post" action="searchinv.php?search='.$_POST['search'].'">
                      <label class="form-label-left" id="l_sort" for="sort">Re-SortBy:</label>
                      <div class="form-input">
                        <select class="form-dropdown" style="width:190px" id="re_sort" name="re_sort" onchange="this.form.submit();">
                          <option value="ref_numberSORT_ASC" selected="selected">ReferenceNumber-Ascending</option>
                          <option value="ref_numberSORT_DESC"0>ReferenceNumber-Descending</option>
                          <option value="date_addedSORT_ASC">DateAdded-Ascending</option>
                          <option value="date_addedSORT_DESC">DateAdded-Descending</option>
                          <option value="last_updateSORT_ASC">DateUpdated-Ascending</option>
                          <option value="last_updateSORT_DESC">DateUpdated-Descending</option>
';
if($_SESSION['admin']==1)
$srch_rslt.='                          <option value="sourceSORT_ASC">Source-Ascending</option>
                          <option value="sourceSORT_DESC">Source-Descending</option>
';
$srch_rslt.='                        </select>
                        <button type="submit" value="submit">Submit</button>
                        <input type="hidden" name="search" value="'.$_POST['search'].'"/>
                      </div>
                    </form>
                  </div>
                </div>
              </div>
              <script type="text/javascript" language="javascript">
                //<![CDATA[
                  document.body.style.overflow="hidden";
                //]]>
              </script>
';
      }
    }
  echo $srch_rslt;
  do_html_footer('Search Equipment');
?>

Link to comment
Share on other sites

Quick update...

I have done a search on EVERY page of my website...using my PHP Editor...there are only 4 occurrences of $_SESSION['rows'] on my site...all located in the code above...so there is NO reason I can see that $_SESSION['rows'] should become unset.

 

Something else I found interesting...I place print_r($_SESSION['rows']) at the very bottom of my code and checked it BEFORE I re-submitted a resort...and $_SESSION['rows'] is there with the information...so why when I submit does it disappear? 

 

I also ran a validation on the code...I found some errors...fixed them and same result...grrr

Link to comment
Share on other sites

After more extensive troubleshooting...I've narrowed the problem to this bit of code...

 

<?php
              default: 
                  $data=$_SESSION['rows'];
                  $sorts=explode(' ',$_POST['order']);
                  $keys=$sorts[0];
                  $order=$sorts[1]; print_r($data);
                  foreach($data as $key=>$row)
                    {
                      $column[$key]=$row[$keys];
                    }
                  $rows=array_multisort($column,$order,$data);
                  break;
?>

 

print_r($data) shows that $_SESSION['rows'] is passing it's contents so the issue falls with the 'foreach' statment...

 

after that everything breaks because then this $rows is empty which in the next set of lines gets set to $_SESSION['rows']...

Link to comment
Share on other sites

Ok I think I figured it out...

<?php
array_multisort($sort, $order, $data);
?>

the order has to be hard coded...you can not place a var there because if you do you get Warning:  array_multisort(): Argument #2 is expected to be an array or a sort flag...this just caused a plethora of errors...so now I'll place another switch statement to figure which way to sort...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

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.