close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Updating stock from checkout success page

Thread began 3/08/2012 7:28 am by dallySP | Last modified 12/09/2013 10:52 am by dallySP | 5045 views | 13 replies

dallySP

hmm - well its something in the recordset selection code. I've changed it so it selects the record by ID rather than barcode as I thought this might be giving me the problem, but its still occurring. This is the error report from my apache error log:
PHP Fatal error: Can't use method return value in write context in C:\\wamp\\www\\okeefe\\public_html\\checkout_success.php on line 358

and this is the code chunk to which it refers (line 358 being the 3rd line down):
<?php
$paramInvID_rsInventory = "-1";
if (isset($OkeefeCart->DisplayInfo("InvID"))) {
$paramInvID_rsInventory = (get_magic_quotes_gpc()) ? $OkeefeCart->DisplayInfo("InvID") : addslashes($OkeefeCart->DisplayInfo("InvID"));
}
mysql_select_db($database_cmsconn, $cmsconn);
$query_rsInventory = sprintf("SELECT * FROM inventory WHERE inventory.InvID=%s", GetSQLValueString($paramInvID_rsInventory, "int"));
$rsInventory = mysql_query($query_rsInventory, $cmsconn) or die(mysql_error());
$row_rsInventory = mysql_fetch_assoc($rsInventory);
$totalRows_rsInventory = mysql_num_rows($rsInventory);
?>

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