close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

undefined function microtime_float() error on confirm page

Thread began 8/02/2012 4:00 pm by rgolab68503 | Last modified 8/14/2012 8:42 am by rgolab68503 | 6403 views | 11 replies

Jason ByrnesWebAssist

my apologies, i meant to type 411.

lines 359 - 411 are the code for the store order details:

php:
<?php 

// WA eCart Store Cart Details in Db
if (($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)) // Trigger
{
  
$WA_connection $t0y0t1r3s;
  
$WA_table "orderdetails";
  
$WA_redirectURL "checkout_success.php";
  
$WA_indexField "DetailOrderID";
  
$WA_fieldNamesStr "DetailOrderID|DetailProductID|DetailName|DetailPrice|DetailQuantity";
  
$WA_fieldValuesStr WA_eCDB_ConvertNumber("".((isset($_SESSION["Displays_OrderID"]))?$_SESSION["Displays_OrderID"]:"")  ."") . "|" WA_eCDB_ConvertNumber("".$Displays->DisplayInfo("ID")  ."") . "|" "".$Displays->DisplayInfo("Name")  ."" "|" WA_eCDB_ConvertNumber("".$Displays->DisplayInfo("Price")  ."") . "|" WA_eCDB_ConvertNumber("".$Displays->DisplayInfo("Quantity")  ."");
  
$WA_columnTypesStr "none,none,NULL|none,none,NULL|',none,''|none,none,NULL|none,none,NULL";
  
$WA_sql "";
  
mysql_select_db($database_t0y0t1r3s$WA_connection);
  
$indexFieldIndex = -1;
  
$WA_fieldValues explode("|"$WA_fieldValuesStr);
  if (!
session_id()) session_start();
  if (
$WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
    
$WA_redirectURL .= ((strpos('?'$WA_redirectURL) === false)?"?":"&").$_SERVER["QUERY_STRING"];
  }
  
$WA_fieldNames explode("|"$WA_fieldNamesStr);
  
$WA_columns explode("|"$WA_columnTypesStr);
  for (
$i 0$i sizeof($WA_fieldNames); $i++)
  {
    if (
$WA_indexField  == $WA_fieldNames[$i])
    {
      
$indexFieldIndex $i;
      break;
    }
  }
  
$deleteFieldValue $WA_fieldValues[$indexFieldIndex];
  if (isset(
$deleteFieldValue) && $deleteFieldValue != "")
  { 
    
$deleteParamsObj WA_generateInsertParams(array($WA_indexField), array($WA_columns[$indexFieldIndex]), array($deleteFieldValue), -1);
    
$WA_sql "Delete from " $WA_table " where " $WA_indexField " = " $deleteParamsObj->WA_dbValues;
    
$WA_editCmd mysql_query($WA_sql$WA_connection) or die(mysql_error());
    
$WA_okToDelete false;
  }
  
$Displays->MoveFirst();
  while (!
$Displays->EOF())
  {
    
$WA_fieldValuesStr WA_eCDB_ConvertNumber("".((isset($_SESSION["Displays_OrderID"]))?$_SESSION["Displays_OrderID"]:"")  ."") . "|" WA_eCDB_ConvertNumber("".$Displays->DisplayInfo("ID")  ."") . "|" "".$Displays->DisplayInfo("Name")  ."" "|" WA_eCDB_ConvertNumber("".$Displays->DisplayInfo("Price")  ."") . "|" WA_eCDB_ConvertNumber("".$Displays->DisplayInfo("Quantity")  ."");
    
$WA_fieldValues explode("|"$WA_fieldValuesStr);
    
$insertParamsObj WA_generateInsertParams($WA_fieldNames$WA_columns$WA_fieldValues, -1);
    
$WA_sql "insert into ".$WA_table." (".$insertParamsObj->WA_tableValues.") values (".$insertParamsObj->WA_dbValues.")";
    
$WA_editCmd mysql_query($WA_sql$WA_connection) or die(mysql_error());
    
$Displays->MoveNext();
  }
  if (
$WA_redirectURL != "")  {
    
header("Location: ".$WA_redirectURL); exit;
  }
  
$Displays->MoveFirst();
}
?>



the UE code block needs to be after the details are stored.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...