Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE : PHP 4 + Freetds 0.60 + SQL Server 2000: msg#00050

db.tds.freetds

Subject: RE : PHP 4 + Freetds 0.60 + SQL Server 2000

In fact we use a debian SARGE OS with the 0.61 package for freetds.

I'm not administrator but it seems difficult to updgrade.

So, I would to know if my problem is a known bug or if it's a fonctionnality
evolution.

Thanks a lot

-----Message d'origine-----
De : ZIGLIO, Frediano, VF-IT [mailto:Frediano.Ziglio@xxxxxxxxxxxx]
Envoyé : lundi 13 septembre 2004 17:06
À : FreeTDS Development Group
Objet : RE: [freetds] PHP 4 + Freetds 0.60 + SQL Server 2000

>
> Hello,
>
> Since 2 years ago we use freetds 0.52 to connected between PHP and SQL
> Server.
>
> Due to problem with the euro character (€) we upgrade to Freetds 0.60.
>
> But now we've got a big problem with the php function mssql_query or
> mssql_fetch_array.
>
> When my query return an empty result the link identifier
> return 1 instead of
> a true link identifier (# XX)
>
>
> Do I need to upgrade again or any other idea.
>
> Thanks and excuse for my poor english
>
> Cedric
>
>
> **************
> * in my code *
> **************
> echo 'first query';
> $sql = "select COLONNE_1 from MY_TABLE where 1=1";
> $rs = mssql_query($sql) or die($sql);
> echo $rs. '<br>';
> $row = mssql_fetch_array($rs);
> echo row["COLONNE_1"] . '<br>'. '<br>';
>
> echo 'second query';
> $sql = "select * from MY_TABLE where 1=0";
> $rs = mssql_query($sql) or die($sql);
> echo $rs. '<br>';
> $row = mssql_fetch_array($rs);
> echo row["COLONNE_1"] . '<br>'. '<br>';
>
> **************
> * it's write *
> **************
> first query
> Resource id #5
> TOTO
>
> second query
> 1
> Warning: mssql_fetch_array(): supplied argument is not a
> valid Sybase result
> resource in ......
>

??
2 years ago we released 0.60, I don't understand why you choose 0.52
version... This year we release 0.62 (current it's 0.62.4 with some
additional fixes in CVS) and we are going to release 0.63 (famous last words
:) )... yes, I think it's time to try a new version :)...

freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS@xxxxxxxxxxxxxxxxx
http://lists.ibiblio.org/mailman/listinfo/freetds


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation