close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Connection interface

Thread began 12/18/2021 8:39 am by john70964 | Last modified 1/03/2022 11:06 am by Ray Borduin | 821 views | 27 replies |

john70964

Connection interface.

Hello Ray,
I am having some problems with a connection not working.
I can remember a previous occasion when you suggested

"You should probably just create a new connection using our interface to ensure you don't have any issues moving forward.
Just use the same host, username, and password from the one provided".

Can you please say where I can find the interface ?.
Many thanks

John

========================

Sign in to reply to this post

Ray BorduinWebAssist

The error implies the file: boatsforsalenow/canal-boats.php on line 1

Has a bad file name reference (missing the .php extension?)

I'm not sure why you have a hand coded connections file, but that would definitely cause issues with using the connection in Dreamweaver as well.

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

john70964

Thanks Ray.
The page definitely has the .php extension please see picture.

Is the present connections file incorrect?
Is there a tutorial somewhere that shows how to use the connections file creator?

The site has been working OK until recently.

Sign in to reply to this post

Ray BorduinWebAssist

The page appears to be missing the extension... shouldn't it be:

<?php require_once('Connections/conn1_i.php'); ?>

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

john70964

Agreed Ray .php certainly should be there.
Strange part is there were 13 pages in all, that had the php extension missing.
The .php is there now.

Later another error message popped at the top of the index page

Warning: mysqli_error() expects exactly 1 parameter, 0 given in /homepages/37/d415519235/htdocs/boatsforsalenow/Connections/conn1_i.php on line 8

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure why you are using a hand coded connection file. I'd have to get a copy of that file to tell you what is wrong with it, but if you just used the Dreamweaver mysqli connection dialog to create your connection then I'm sure it would have the correct syntax.

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

john70964

Thanks Ray
A copy of the file is attached

Sign in to reply to this post

Ray BorduinWebAssist

I'm still not sure why you are using a hand coded connection file, but your syntax is wrong. The code:

if (mysqli_errno()) {
die('<p>Failed to connect to MySQL: '.mysqli_error().'</p>');
}

should be:

if (mysqli_errno($conn1_i)) {
die('<p>Failed to connect to MySQL: '.mysqli_error($conn1_i).'</p>');
}

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

john70964

Please see PM

Sign in to reply to this post

Ray BorduinWebAssist

Go to: WebAssist->Database->Database Connections

That will launch the connections dialog that will allow you to create the connections properly so they will be recognized by Dreamweaver.

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

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