Jump to content

Recommended Posts

I have a bit of a problem with one of many other scripts that barand has put together for me. I tried to customize it, but forgot to back up the file before I started, and when I tried to put it back together, I only partially managed to do so. The last line there is a error in/quotation marks (I think it is). Can anybody help me?

<a id="nav-panel" href="<?=$HOST?>panel.php" class="w3-bar-item w3-button"><?=$disabl?>Diskuter</a>

Link to comment
https://forums.phpfreaks.com/topic/313861-quotation-marks-error-again/
Share on other sites

23 minutes ago, ginerjm said:

What is $HOST?

 

That is the domain/db_host/IP to the DB Host. It isn't there the error is. It is  in the back of the line. Where to put the quoting marks around <?=$disabl1?> area. Or, i think it is around that area.

Edited by LeonLatex

It works fine the way it is, and the way barand has set it up.

define("HOST",'xxx.xxxx.xxxxxxxxxx.com'); // Default database host.

$db = new PDO("mysql:host=".HOST.";dbname=$dbname;charset=utf8",USERNAME,PASSWORD);

 

The error is where i alresdy have told. But i cant see where to put the quotes.

The error has nothing to do with the globals/variables in the connection script/include file.
It is a Quoting mark error nearby the text to be printed out by PHP on the screen.

On the screen it should looks like this: Diskuter (the link text)
But, it look like this: w3-disabledDiskuter

Edited by LeonLatex
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.