FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » simple link won't show
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
simple link won't show [message #185404] Wed, 26 March 2014 18:51 Go to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
$t=$row['title'];
echo "<td>";
echo "<a href='#'>.$t.</a>";


http://mroldies.net/dailyplayer.php


I have tried numerous combinations of single and double quotes and I the
link still will not show up.While on my main page, and elsewhere, they show
up just fine. What am I missing?

It's time to laugh and bash stupid.
So go for it boys. Give it your best.
Re: simple link won't show [message #185405 is a reply to message #185404] Wed, 26 March 2014 20:04 Go to previous messageGo to next message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma: 0
Senior Member
On 3/26/14, 11:51 AM, richard wrote:
>
> $t=$row['title'];
> echo "<td>";
> echo "<a href='#'>.$t.</a>";
>
>
> http://mroldies.net/dailyplayer.php
>
>
> I have tried numerous combinations of single and double quotes and I the
> link still will not show up.While on my main page, and elsewhere, they show
> up just fine. What am I missing?
>
> It's time to laugh and bash stupid.
> So go for it boys. Give it your best.
>

look at your source code in the browser and it may become evident.

Scotty
Re: simple link won't show [message #185406 is a reply to message #185405] Wed, 26 March 2014 22:23 Go to previous messageGo to next message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma: 0
Senior Member
On Wed, 26 Mar 2014 13:04:21 -0700, Scott Johnson wrote:

> On 3/26/14, 11:51 AM, richard wrote:
>>
>> $t=$row['title'];
>> echo "<td>";
>> echo "<a href='#'>.$t.</a>";
>>
>>
>> http://mroldies.net/dailyplayer.php
>>
>>
>> I have tried numerous combinations of single and double quotes and I the
>> link still will not show up.While on my main page, and elsewhere, they show
>> up just fine. What am I missing?
>>
>> It's time to laugh and bash stupid.
>> So go for it boys. Give it your best.
>>
>
> look at your source code in the browser and it may become evident.
>
> Scotty

The big problem for me was the damned caching.
I deleted the code for the table, uploaded the page and I was still seeing
the old table.
Re: simple link won't show [message #185407 is a reply to message #185404] Thu, 27 March 2014 00:02 Go to previous messageGo to next message
Norman Peelman is currently offline  Norman Peelman
Messages: 126
Registered: September 2010
Karma: 0
Senior Member
On 03/26/2014 02:51 PM, richard wrote:
>
> $t=$row['title'];
> echo "<td>";
> echo "<a href='#'>.$t.</a>";
>
>
> http://mroldies.net/dailyplayer.php
>
>
> I have tried numerous combinations of single and double quotes and I the
> link still will not show up.While on my main page, and elsewhere, they show
> up just fine. What am I missing?
>
> It's time to laugh and bash stupid.
> So go for it boys. Give it your best.
>

Are you sure $row['title'] is not blank? Even so, that code works
here and if it were blank you should still see:

<a href='#'>..</a>

in the source. That being said, are you really after:

echo "<a href='#'>".$t."</a>";

or

echo "<a href='#'>$t</a>";

--
Norman
Registered Linux user #461062
-Have you been to www.php.net yet?-
Re: simple link won't show [message #185408 is a reply to message #185404] Thu, 27 March 2014 00:54 Go to previous messageGo to next message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma: 0
Senior Member
On Wed, 26 Mar 2014 14:51:48 -0400, richard wrote:

> $t=$row['title'];
> echo "<td>";
> echo "<a href='#'>.$t.</a>";
>
>
> http://mroldies.net/dailyplayer.php
>
>
> I have tried numerous combinations of single and double quotes and I the
> link still will not show up.While on my main page, and elsewhere, they
> show up just fine. What am I missing?
>
> It's time to laugh and bash stupid.
> So go for it boys. Give it your best.

A couple of suggestions.

When creating a large table, write a newline character after the closing
tag of every tr.

Use htmlspecialchars or htmlentities to preprocess text that you are
inserting into a web page. If your original data has a combination of
escaped and unescaped ampersands, you may need to set the double_encode
param to false.

Use a lang attribute for your html element.

Use utf-8.

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
Re: simple link won't show [message #185409 is a reply to message #185406] Thu, 27 March 2014 02:53 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 3/26/2014 6:23 PM, richard wrote:
> On Wed, 26 Mar 2014 13:04:21 -0700, Scott Johnson wrote:
>
>> On 3/26/14, 11:51 AM, richard wrote:
>>>
>>> $t=$row['title'];
>>> echo "<td>";
>>> echo "<a href='#'>.$t.</a>";
>>>
>>>
>>> http://mroldies.net/dailyplayer.php
>>>
>>>
>>> I have tried numerous combinations of single and double quotes and I the
>>> link still will not show up.While on my main page, and elsewhere, they show
>>> up just fine. What am I missing?
>>>
>>> It's time to laugh and bash stupid.
>>> So go for it boys. Give it your best.
>>>
>>
>> look at your source code in the browser and it may become evident.
>>
>> Scotty
>
> The big problem for me was the damned caching.
> I deleted the code for the table, uploaded the page and I was still seeing
> the old table.
>

Been there... Done that... :)

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mr. Stuckle and Mr. Miller - explain normalisation with an example
Next Topic: Most secure way to reset a password via email link
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 17:18:15 GMT 2024

Total time taken to generate the page: 0.02208 seconds