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

[PHP-DB] php/msql

2002-01-18 Thread Mike
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 table if I // echo $form

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

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

2001-11-22 Thread [EMAIL PROTECTED]
Hi, out there Has anybody found a way to pass variables between javascript and php? Here's what I want to achieve: 1. I want to display a mysql_query result record-by-record (first/prev/next/last buttons) without re-querying. 2. I want to use a static html-form and plug the data into