Jump to content

A href problem under php


neomhm

Recommended Posts

Hello...

 

I tried to explain the issue in an earlier post.. but was not clear enough....

 

So let me try again:

 

I think that the problem happens in Loops (while).

 

When I add a simple html a href (link)... then the linked word goes back to the line (as a <br> would do).

 

No idea why... tried on different websites... different servers... hell.. with different wives... still the problem follows me as a bad emoroid.

 

<?php

while ($whatever=mysql_fetch_array($youwant)){?>

 

no idea why on earth my <a href="nowhere.html">link</a> goes back to the line when I run this script!!

 

 

<?php}

?>

 

result :

 

no idea why on earth my

link

 

 

Also... if the link applies on a multiple word link.. every word goes separately to the line... example:

 

 

<?php

while ($whatever=mysql_fetch_array($youwant)){?>

 

no idea why on earth my <a href="nowhere.html">link goes back</a>to the line when I run this script!!

 

 

<?php}

?>

 

resulting :

no idea why on earth my

link

goes

back

to the line when I run the script.

 

Thank you for the help... starts to really bug me!!!

Link to comment
Share on other sites

1st example:

<?php
while ($whatever=mysql_fetch_array($youwant)){?>

no idea why on earth my <a href="nowhere.html">link</a> goes back to the line when I run this script!!


<?php }
?>

 

result :

no idea why on earth my

link

goes back to the line when I run the script!!!

 

 

2nd example :

<?php
while ($whatever=mysql_fetch_array($youwant)){?>

no idea why on earth my <a href="nowhere.html">link goes back</a>to the line when I run this script!!


<?php } 
?>

 

 

resulting :

no idea why on earth my

link

goes

back

to the line when I run the script.

 

 

thank you

 

Link to comment
Share on other sites

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.