Re: Re: echo?
| From: | Hans Åhlin | Date: | Fri, 25 Mar 2011 01:08:26 +0000 |
| Subject: | Re: Re: echo? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312034@lists.php.net to get a copy of this message | ||
2011/3/23 Jim Giner <jim.giner@albanyhandball.com>:
> ok - here's the code in question.
> $q = 'select * from director_records ';
> $qrslt = mysql_query($q);
> $rows = mysql_num_rows($qrslt);
> for ($i=0; $i<$rows; $i++)
> {
> $j = $i+1;
> $row = mysql_fetch_array($qrslt);
> echo $j.'-'.$row['userid'];
> if ($row['user_priv']<> "")
try > echo '
('.$row['user_priv'].")
\r\n"; //If you
don't put \r\n or a space at the end of the echo then the beginning on
the next line is going to be interpreted as #101/#102/#103 aso (that i
figured when you wrote that putting a space in the beginning of the
echo solved the problem.
> else
echo "
\r\n";
> }
--
**********************************************
Hans Åhlin
Tel: +46761488019
icq: 275232967
http://www.kronan-net.com/
irc://irc.freenode.net:6667 - TheCoin
**********************************************