Ethan Rosenberg
2014-08-14 04:24:16 UTC
Dear List -
fprintf($fptr1,"\n\n"); //works
$string1 = "this is a test";
echo $string1; //works
fprintf($frpr1,"%s\n", $string1); //doesn't work
<snip>
while ($row1 = mysqli_fetch_row($result1))
{.
.
.
fprintf($fptr1, "%s\t %s\t %-9s\t %s\t\n", $row1[4] -$row1[3],
$row1[0],$row1[1],$row1[2] ); //works
}
fprintf($frpr1,"%s\n", $string1); //doesn't work
What am I doing wrong?
TIA
Ethan
fprintf($fptr1,"\n\n"); //works
$string1 = "this is a test";
echo $string1; //works
fprintf($frpr1,"%s\n", $string1); //doesn't work
<snip>
while ($row1 = mysqli_fetch_row($result1))
{.
.
.
fprintf($fptr1, "%s\t %s\t %-9s\t %s\t\n", $row1[4] -$row1[3],
$row1[0],$row1[1],$row1[2] ); //works
}
fprintf($frpr1,"%s\n", $string1); //doesn't work
What am I doing wrong?
TIA
Ethan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php