Re: ASP => PHP

From: Date: Wed, 06 Sep 2000 12:06:13 +0000
Subject: Re: ASP => PHP
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-2454@lists.php.net to get a copy of this message
But i got a error as: Warning: SQL error: [Microsoft][ODBC Driver Manager] invalidation String or buffer length, SQL state S1090 in SQLConnect in F:\php\program\test\test5.phtml on line 7 <? $cnpath = "DBQ=F:\\Inetpub\\iissamples\\sdk\\asp\\database\\authors.mdb"; $driver = "DRIVER={Microsoft Access Driver (*.mdb)};"; $dsn = $driver.$cnpath; $usuario = ""; $senha = ""; $connect = odbc_pconnect($dsn, $usuario, $senha); ?> "Andy Hoffman" <andy.hoffman@bms.com> wrote in message news:39B5512D.963C46BB@bms.com... > Andy Hoffman wrote: > > > try changing your backslashes to double-backslashes, such as... > > > > $cnpath = "DBQ=c:\\apache\\wwwroot\alacr.mdb"; > > Ooopps... forgot the last double-backslash. Should be... > > $cnpath = "DBQ=c:\\apache\\wwwroot\\alacr.mdb"; > > -- > Andy Hoffman > Web Developer > Bristol-Myers Squibb > email: andy.hoffman@bms.com > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#2454) next »