Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    272
    Thanks
    63
    Thanked 1 Time in 1 Post

    random indent..?

    I have the code:

    Code:
    <P ALIGN="LEFT">        <?
    				$get_name = mysql_query("SELECT * FROM `lastcredited` ORDER BY `date` DESC LIMIT 0, 10");
     while($namerow = mysql_fetch_array($get_name)) {
      	$name1 = $namerow["name"];
    	$countr = $namerow["country"];
    	$id = $namerow["id"];
    ?>
     <a href="search.php?q=<?=$name1?>&Submit=Search"><?=$name1?></a><br><br>
               <? }?></P>
    and for some reason it randomly indents the lines... and after i refresh a few times it goes away. it seems to only be doing this with the first result/line
    whats going on?

  • #2
    Regular Coder
    Join Date
    Jul 2011
    Posts
    272
    Thanks
    63
    Thanked 1 Time in 1 Post
    EXAMPLE:

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Posts
    272
    Thanks
    63
    Thanked 1 Time in 1 Post
    looks like i need to give u the whole page to fix the error so i wont worry about it. thanks anyway

  • #4
    New Coder
    Join Date
    Aug 2011
    Posts
    51
    Thanks
    6
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by markman641 View Post
    I have the code:

    Code:
    <P ALIGN="LEFT">        <?
    				$get_name = mysql_query("SELECT * FROM `lastcredited` ORDER BY `date` DESC LIMIT 0, 10");
     while($namerow = mysql_fetch_array($get_name)) {
      	$name1 = $namerow["name"];
    	$countr = $namerow["country"];
    	$id = $namerow["id"];
    ?>
     <a href="search.php?q=<?=$name1?>&Submit=Search"><?=$name1?></a><br><br>
               <? }?></P>
    and for some reason it randomly indents the lines... and after i refresh a few times it goes away. it seems to only be doing this with the first result/line
    whats going on?
    Try getting rid of those bunch of spaces between the align left and the <?

  • #5
    Regular Coder
    Join Date
    Jul 2011
    Posts
    272
    Thanks
    63
    Thanked 1 Time in 1 Post
    Quote Originally Posted by ASTP001 View Post
    Try getting rid of those bunch of spaces between the align left and the <?
    No, I found out its page specific. that code is in another file which i put include sidebar1.php and there must be something on the page that is causing it.

  • #6
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    can you post code that is generated on client side? this looks like one of those things that could be fixed in about 2 minutes of Firebug investigation.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •