...

View Full Version : random indent..?



markman641
09-03-2011, 03:43 AM
I have the 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?

markman641
09-03-2011, 03:55 AM
EXAMPLE: http://screensnapr.com/e/J2plSi.png

markman641
09-03-2011, 04:26 AM
looks like i need to give u the whole page to fix the error so i wont worry about it. thanks anyway

ASTP001
09-03-2011, 05:33 AM
I have the 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 <?

markman641
09-04-2011, 06:05 AM
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.

DanInMa
09-04-2011, 06:26 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum