Hi Mike
> while ($row = mysql_fetch_array($result)) {
> echo "".$row[0]."\n";
> echo "".$row[1]."\n";
> $formatted=sprintf("$%s",$row[2]);
> echo "" $formatted " ";
> }
>
> I get an error in the last line where I want to put $formatted into the last
> cell of a table
> if I // echo $formatte
Mike wrote:
>Hi,
>
Hi Mike
>I have the following code:
>
>while ($row = mysql_fetch_array($result)) {
> echo "".$row[0]."\n";
> echo "".$row[1]."\n";
> $formatted=sprintf("$%s",$row[2]);
> echo "" $formatted " ";
>}
>
>I get an error in the last line where I want to put $formatted into the last
Mike wrote:
>Hi,
>I have the following code:
>
>while ($row = mysql_fetch_array($result)) {
> echo "".$row[0]."\n";
> echo "".$row[1]."\n";
> $formatted=sprintf("$%s",$row[2]);
> echo "" $formatted " ";
>}
>
>I get an error in the last line where I want to put $formatted into the last
>cell of a
I don't know much about javascript, but I would do the following:
1. Figure out what javascript data structure you are going to use to hold
the data.
2. Figure out exactly how it should be coded.
3. Simply write your PHP script to output your javascript as in 2.
The hard part of the matter (whi