neomhm Posted November 11, 2009 Share Posted November 11, 2009 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 More sharing options...
trq Posted November 11, 2009 Share Posted November 11, 2009 Can you post some actual code? Within tags please. Link to comment https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/#findComment-955435 Share on other sites More sharing options...
neomhm Posted November 11, 2009 Author Share Posted November 11, 2009 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 https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/#findComment-955443 Share on other sites More sharing options...
gizmola Posted November 11, 2009 Share Posted November 11, 2009 I don't think you understand -- we're looking for the actual code. That is not the actual code is it? Link to comment https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/#findComment-955446 Share on other sites More sharing options...
chauffeur Posted November 11, 2009 Share Posted November 11, 2009 have you tried putting it a bit like this? print "words words words " var "words"; Link to comment https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/#findComment-955481 Share on other sites More sharing options...
neomhm Posted November 11, 2009 Author Share Posted November 11, 2009 hum i did not get that last part... can u explain? Link to comment https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/#findComment-955702 Share on other sites More sharing options...
mrMarcus Posted November 11, 2009 Share Posted November 11, 2009 can you post more relevant code please? and use real $variable names (assuming $whatever and $youwant are not real). Link to comment https://forums.phpfreaks.com/topic/181079-a-href-problem-under-php/#findComment-955706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.