Re: [PHP-DB] php/msql

2002-01-19 Thread DL Neil
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

Re: [PHP-DB] php/msql

2002-01-18 Thread Fabien ILLIDE
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

Re: [PHP-DB] php/msql

2002-01-18 Thread Fabien ILLIDE
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

Re: [PHP-DB] PHP/MSQL/HTML and Javascript

2001-11-22 Thread Jason G.
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