Skip to Content.
Sympa Menu

freetds - Strange data results....

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Franck Martin <Franck AT sopac.org>
  • To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
  • Subject: Strange data results....
  • Date: Thu, 6 Jun 2002 17:51:41 +1200


I'm using freetds snapshot and I'm getting strange results in php 4.1.2

It seems that the data buffer is not fully cleared or something like
this...

cf http://www.sopac.org/Data/virlib/index.html
With Netscape instead of explorer you can see that there are specials
character on output

if I change the freetds.conf to use ver 4.2 or 50 instead of 7.0 php
segfaults...

I have captured the data flow and it seems that it is correct ie for the
fields stream:

00d1 0400 "A"00 "R"00 1c00 "A"00 "n"00 "n"00 "u"00 "a"00 "l"00
..[Report]..

The php code is:
$conn = sybase_pconnect("host","login","password");
$ok=sybase_select_db("MYDB",$conn);
$result=sybase_query("SELECT ReportType,ReportTypeName FROM
[ListReportType]",$conn);
$nbrows=sybase_num_rows($result);
for($i=1;$i<=$nbrows;$i++)
{
$arr_row=sybase_fetch_array($result);
echo("<a
href=\"reportsindex.html?ss=type&vv=".trim($arr_row["ReportType"])."\">"
);
echo(trim($arr_row["ReportTypeName"])."</a><BR>");
}

What is happening?

Franck Martin
Network and Database Development Officer
SOPAC South Pacific Applied Geoscience Commission
Fiji
E-mail: franck AT sopac.org <mailto:franck AT sopac.org>
Web site: http://www.sopac.org/
<http://www.sopac.org/> Support FMaps: http://fmaps.sourceforge.net/
<http://fmaps.sourceforge.net/>
Certificate: https://www.sopac.org/ssl/

This e-mail is intended for its addresses only. Do not forward this
e-mail without approval. The views expressed in this e-mail may not be
necessarily the views of SOPAC.





Archive powered by MHonArc 2.6.24.

Top of Page