View Single Post
  #11 (permalink)  
Old 07-27-2008, 08:14 PM
curtiss's Avatar
curtiss curtiss is offline
Moderator
 
Join Date: May 2003
Posts: 1,468
Gil - That's just because you're performing the following action every time the loop runs through a cycle:
PHP Code:
 print($strLine[$line]."<br />\n"); 
The print statement you have after setting the $sql variable each time is plenty.

In order to avoid the first empty statement, I would recommend changing this statement:
PHP Code:
        if($k == 0){ 
to
PHP Code:
        if($k == && !empty($k)){ 
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote