close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Call to undefined function mysql_data_seek() in /WA_eCart/WA_eCart_Definition_PHP.php:1272

Thread began 1/10/2020 11:18 am by Jedi | Last modified 1/10/2020 2:39 pm by Jedi | 34 views | 4 replies

Ray BorduinWebAssist

It looks like you have two recordsets on this page that were similarly named to others and that caused an issue when updating the recordsets to MySQLi.

If you update the code on lines 28-56 to:

php:
<?php

$paramOption_rsFinishlookup 
"-1";
if (isset(
$_POST['eCart1_1_Finish_Add'])) {
  
$paramOption_rsFinishlookup $_POST['eCart1_1_Finish_Add'];
}
$paramItem_rsFinishlookup "-1";
if (isset(
$_POST['eCart1_1_ID_Add'])) {
  
$paramItem_rsFinishlookup $_POST['eCart1_1_ID_Add'];
}
mysql_select_db($database_OConne_i$OConne_i);
$query_rsFinishlookup sprintf("SELECT productoptions.OptionPriceIncrement, productoptions.ProductOptionID, options.OptionName, options.OptionGroupID, optiongroups.OptionGroupName FROM options INNER JOIN productoptions ON options.OptionID = productoptions.OptionID INNER JOIN optiongroups ON options.OptionGroupID = optiongroups.OptionGroupID WHERE optiongroups.OptionGroupID = '1' AND productoptions.ProductOptionID = %s AND productoptions.ProductID = %s"GetSQLValueString($paramOption_rsFinishlookup"int"),GetSQLValueString($paramItem_rsFinishlookup"int"));
$rsFinishlookup mysql_query($query_rsFinishlookup$OConne_i) or die(mysql_error());
$row_rsFinishlookup mysql_fetch_assoc($rsFinishlookup);
$totalRows_rsFinishlookup mysql_num_rows($rsFinishlookup);
?>
<?php
$paramOption_rsStraplookup 
"-1";
if (isset(
$_POST['eCart1_1_Strap_Add'])) {
  
$paramOption_rsStraplookup $_POST['eCart1_1_Strap_Add'];
}
$paramItem_rsStraplookup "-1";
if (isset(
$_POST['eCart1_1_ID_Add'])) {
  
$paramItem_rsStraplookup $_POST['eCart1_1_ID_Add'];
}
mysql_select_db($database_OConne_i$OConne_i);
$query_rsStraplookup sprintf("SELECT productoptions.OptionPriceIncrement, productoptions.ProductOptionID, options.OptionName, options.OptionGroupID, optiongroups.OptionGroupName FROM options INNER JOIN productoptions ON options.OptionID = productoptions.OptionID INNER JOIN optiongroups ON options.OptionGroupID = optiongroups.OptionGroupID WHERE optiongroups.OptionGroupID = '2' AND productoptions.ProductOptionID = %s AND productoptions.ProductID = %s"GetSQLValueString($paramOption_rsStraplookup"int"),GetSQLValueString($paramItem_rsStraplookup"int"));
$rsStraplookup mysql_query($query_rsStraplookup$OConne_i) or die(mysql_error());
$row_rsStraplookup mysql_fetch_assoc($rsStraplookup);
$totalRows_rsStraplookup mysql_num_rows($rsStraplookup);
?>



Then they should show up in the Server Behaviors window so you can update them to MySQLi.


Did this help? Tips are appreciated...

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