close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

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

Thread began 1/10/2020 8:18 am by Jedi | Last modified 1/10/2020 11:39 am by Ray Borduin | 1805 views | 4 replies |

Jedi

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

I am converting a shopping cart site over from mysql to mysqli using databride and ecart 6. I'm stuck at the fatal error statement : Call to undefined function mysql_data_seek() in /WA_eCart/WA_eCart_Definition_PHP.php:1272.
I also can't figure out how to convert lookup data to mysqli with databride.

Sign in to reply to this post

Ray BorduinWebAssist

Now that you have updated your recordset to MySQLi, you should be able to click on your add to cart server behavior and re-apply it and the code will be automatically updated to MySQLi as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jedi

I did and you were right, it did add the code. the only problem is I got this message now: fatal error: Uncaught Error: Call to a member function select_db() on null in /homepages/24/d812057846/htdocs/xxxxx.com/espantoon_detail.php:37 Stack trace: #0 {main} thrown in /homepages/24/d812057846/htdocs/xxxx.com/espantoon_detail.php on line 37

Sign in to reply to this post

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

Jedi

Thanks Ray. That worked. I then fixed the confirm and ppconfirm pages and now the shopping cart works as intended.
You Rock!

Sign in to reply to this post

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