Hi, I have the following code: while ($row = mysql_fetch_array($result)) { echo "<tr><td>".$row[0]."</td>\n"; echo "<td>".$row[1]."</td>\n"; $formatted=sprintf("$%s",$row[2]); echo "<td>" $formatted " </td></tr><br>"; }
I get an error in the last line where I want to put $formatted into the last cell of a table if I // echo $formatted without the HTML tags it puts it at the top of the page. The error is : Parse error: parse error, expecting `','' or `';'' also: what does the "\n" mean at the end of the html tags? I am new to PHP and have no seen that before. Thanks. Mike -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]