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
https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/
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

 

Archived

This topic is now archived and is closed to further replies.

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