[freetds] Parse Error on the output

rconner at commspeed.net rconner at commspeed.net
Fri Apr 23 10:51:24 EDT 2004


I am trying to put the data recieved from a Query into tables but It seems
to be giving me some trouble.  I get a Parse error on the 4th line here. 
any suggestions?

while ($arr = mssql_fetch_row($res))

{
  print ("<table border=1 cellspacing =0><tr align=center nowrap>");
  print ("<td align=left nowrap width=180>%s</td>", $arr["0"]);
  print ("<td align=left nowrap width=180>%s</td>", $arr["1"]);
  print ("<td align=left nowrap width=180>%s</td>", $arr["2"]);
  print ("<td align=left nowrap width=180>%s</td>", $arr["3"]);
  print ("<td align=left nowrap width=180>%s</td>", $arr["4"]);
  print ("<td align=left nowrap width=180>%s</td>", $arr["5"]);
  print ("<td align=left nowrap width=180>%s</td>", $arr["6"]);
  print ("<td nowrap width=70>%s</td></tr></table>", $arr["7"]);

}




More information about the FreeTDS mailing list