Hi,
I have another dumb question. I hope I'm just missing something obvious, but I've been looking at this syntax for a while, and I'm just not seeing it.
Running this on my local server, Win 10 with IIS running PHP 5.6.
The following variables are set as follows:
$locationid = 0;
$parentitemid = 0;
I then have the following line of code:
As far as I can tell, that line of code SHOULD return this HTML:
...but instead it's returning this:
What am I doing wrong?
Katie
I have another dumb question. I hope I'm just missing something obvious, but I've been looking at this syntax for a while, and I'm just not seeing it.
Running this on my local server, Win 10 with IIS running PHP 5.6.
The following variables are set as follows:
$locationid = 0;
$parentitemid = 0;
I then have the following line of code:
PHP:
echo '<li><a class="addbutton" id="addnew" href="itemsetup.php?clientid=' . $clientid .
(($locationid=0) ? '' : '&locationid=' . $locationid) .
(($parentitemid=0) ? '' : '&parentitemid=' . $parentitemid) . '">Add New Top-Level Item</a></li>';
HTML:
<li><a class="addbutton" id="addnew" href="itemsetup.php?clientid=1">Add New Top-Level Item</a></li>
...but instead it's returning this:
HTML:
<li><a class="addbutton" id="addnew" href="itemsetup.php?clientid=1&locationid=0&parentitemid=0">Add New Top-Level Item</a></li>
What am I doing wrong?
Katie