Web Analytics Made Easy -
StatCounter random indent..? - CodingForum

Announcement

Collapse
No announcement yet.

random indent..?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?
    Ever want to see inside of a rave? Check out RedRoll and join our community of EDM lovers and rave fanatics.

  • #2
    EXAMPLE:
    Ever want to see inside of a rave? Check out RedRoll and join our community of EDM lovers and rave fanatics.

    Comment


    • #3
      looks like i need to give u the whole page to fix the error so i wont worry about it. thanks anyway
      Ever want to see inside of a rave? Check out RedRoll and join our community of EDM lovers and rave fanatics.

      Comment


      • #4
        Originally posted by markman641 View Post
        I have the code:

        Code:
        [B]<P ALIGN="LEFT">        <?[/B]
        				$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 <?

        Comment


        • #5
          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.
          Ever want to see inside of a rave? Check out RedRoll and join our community of EDM lovers and rave fanatics.

          Comment


          • #6
            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.
            - Firebug is a web developers best friend! - Learn it, Love it, use it!
            - Validate your code! - JQ/JS troubleshooting
            - Using jQuery with Other Libraries - Jslint for Jquery/other JS library users

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎