From: Abs [mailto:[EMAIL PROTECTED]

> hi
> the error is in this line:
> $newvalue = $row["Password"];
> make it
> $newvalue.= $row["Password"];
> (notice  ^ the dot - for concatenation with the
> previous value).
> 
> and if u want to see each password in the browser too,
> in that same loop, put:
> echo "{$row["Password"]\n";
> 
> so it would now look like:
>     while ( $row = mysql_fetch_array($rows1) ) { 
>     
>        $newvalue.=$row["Password"];  
>        echo "{$row["Password"]\n";
>     }
> 
> u may also want to use a <br> in ur echo line to make
> the browser output nicer, the \n affects only the html
> code. and while u're at it, put a \n in $newline so
> that ur email looks nicer.


For the record, there's a syntax error in there -- the closing curly brace is missing.

echo "{$row["Password"]}\n";
               --------^

Also, I've never tried this syntax with double-quotes. Do the curly braces keep the 
PHP parser from thinking that the opening " for Password is a close of the string? I 
use single quotes in that kind of situation, FWIW.


-- 
Mike Johnson
Web Developer/Systems Asst.
Smarter Living, Inc.
phone (617) 497-2500 x226

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to