Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > Problem with sybase_fetch_array()
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 23rd June 00:12
alessandro
External User
 
Posts: 1
Default Problem with sybase_fetch_array()



I am extracting data from MSSQL with the usual system:

sybase_connect() to connect
sybase_select_db() to select the db
sybase_query() to execute the query
while cycle with sybase_fetch_array() to get data

On an old linux pc (Debian Woody, apache 1.3.26 and php 4.1.2)
everything works fine.
On a new machine (Debian Sarge, apache 2.0.54 and php 4.3.10) it's just
the same, except when the query does not fetch any rows. In this case
the script issue the error "Warning: sybase_fetch_array(): supplied
argument is not a valid Sybase
result resource in ..." when it tries to execute the
sybase_fetch_array() function.

Scripts are the same on both pc, the MSSQL database is the same, also
php.ini on both machines are pretty the same (in the first one, I have
an entry in the [Sybase] section pointing to a not existing
/etc/freetds/interfaces file. In the second .ini this entry does not
exist).

On both pc all packets were installed via aptitude and no recompiling
took place.

Anybody could help me to find where is the problem?
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666