RE: [PHP-DB] Whence Cometh Line Break?

From: Date: Fri, 09 Mar 2001 14:45:38 +0000
Subject: RE: [PHP-DB] Whence Cometh Line Break?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7254@lists.php.net to get a copy of this message
Rather than use =, have you tried echo value="<? echo $i ?>" Chris > -----Original Message----- > From: Michael Gerholdt [mailto:keywordz@keywordz.net] > Sent: 09 March 2001 14:03 > To: php-db@lists.php.net > Subject: [PHP-DB] Whence Cometh Line Break? > > > I've discovered that this little bit of code is introducing a line break > into my > SQL string and it is causing it to break. > > the month comes through as '[linebreak here]Mar' > > <? $i = > date("M",mktime(0,0,0,date("m")-1,date("d"),date("Y")));?> > <input type="radio" name="month" > value="<?=$i?>">&nbsp;<?=$i?> > > (these are two unbroken lines in original code.) > > Where does a line break come from in > value="<?=$i?>" ?? > > I'm mystified! > > Thanks, > Mike > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.db (#7254) next »