close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

convert a page from Mysql to Mysqli

Thread begun 1/16/2019 11:44 am by john70964 | Last modified 1/21/2019 10:30 am by Ray Borduin | 2079 views | 6 replies |

john70964

convert a page from Mysql to Mysqli

Hi Ray
I am following the instructions on page
http://www.webassist.com/dreamweaver-extensions/data-bridge
Migrate MySQL pages to MySQLi

I have a results page and a details page
On the results page in Dreamweaver the MySql recordset is opened and it quickly converts to the new
to a MySql_i connection. TheTest brings the correct records on the results page.
.
When I hover over a link I see detail.php?RecNo=12118 which is correct

However when I click on a link on the detail page I see an error message
Access forbidden!

You don't have permission to access the requested directory.
There is either no index document or the directory is read-protected
and the url /page detail.php is missing in the url.
I have placed further details in a PM
Many thanks
John

Sign in to reply to this post

Ray BorduinWebAssist

I'd have to look at the page to see what is wrong. It looks like a syntax error in the link... it might be a redirect on the details page. It is really hard to say.

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

john70964

By Changing this line 264 from
<td class="WADAResultsTableCell"><a href="boats_detail.php?RecNo=<?php echo $WADAboats->getColumnVal('RecNo'); ?>"><?php echo($WADAboats->getColumnVal('RecNo')); ?></a></td>
to:
<td class="WADAResultsTableCell"><a href="boats_detail.php?RecNo=<?php echo ($WADAboats->getColumnVal('RecNo')); ?>"><?php echo($WADAboats->getColumnVal('RecNo')); ?></a></td>
on local host
the error message became
Warning: mysql_free_result() expects parameter 1 to be resource, object given in C:\xampp\htdocs\boatsforsalenow_mysqli\Man_SeaLine\boats_detail.php on line 235

Sign in to reply to this post

Ray BorduinWebAssist

Delete line 235. It shouldn't be needed anymore.

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

john70964

Thanks Ray
I deleted the line and found an error in one of the links.
I now get
Details
This record has been removed.
Later I updated the recordset for the detail page. This opened the page for the first record.

I attach a picture of the recordset. Maybe the Add Variable is incorrect?

Sign in to reply to this post

Ray BorduinWebAssist

The Runtime value can't refer to itself.... it has to be a $_GET variable reference. It should be something like:

<?php echo($_GET["RecNo"]); ?>

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

john70964

Thanks Ray
I think I have this one solved now it was to do with the way I made the link to the next page and the parameters eg the record id.

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