close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Let's start a discussion about PHP versions

Thread began 10/12/2023 3:44 pm by Patrice | Last modified 12/18/2024 2:23 am by Patrice | 5189 views | 92 replies

Peterson Design Studio - jefferis

Originally Said By: Mags
  The function "mysql_fetch_assoc() " is old mySQL code. Can you try updating line 294 as follows:

Change this:

php:
$row_WeddingRings = mysql_fetch_assoc($WeddingRings);


To this:

php:
$row_WeddingRings = mysqli_fetch_assoc($WeddingRings);


There is also some duplication and old PHP code on the page:

Delete line 8 (<?php require_once('webassist/mysqli/rsobj.php'); ?>) as you've included the file twice.

Delete Recordset1 on lines 94-98 as this appears to be a duplicate and not used on the page.

I think lines 23-88 are surplus to requirements and left over from a previous PHP version. Pretty sure you can delete them.

I would suggest making these changes one at a time on a duplicate of your live page and test every time you make a change. That way it's easier to wind back if something breaks!  



Somehow this post got removed. I did all changes. The first one caused the page to show repeating images regions. I am now getting this error on the page:
Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, object given in /usr/www/users/jodenii/cbauer/weddingrings.php on line 225

The error is now where the replacement

php:
$row_WeddingRings = mysqli_fetch_assoc($WeddingRings);


exists. So, changing this to mysql i has opened up the repeating region but is throwing the error above. I can''t find any code showing mysqli_RESULT on the page.

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