Re: Printing

From: Date: Thu, 14 Aug 2014 04:46:14 +0000
Subject: Re: Printing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-323740@lists.php.net to get a copy of this message
Hi, on 4th line, it should be *$fptr1*, instead of *$frpr1* Just a suggestion, keep error reporting on while developing. :) On Thu, Aug 14, 2014 at 9:54 AM, Ethan Rosenberg < erosenberg@hygeiabiomedical.com> wrote: > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Regards, Jigar Dhulla

« previous php.general (#323740) next »