Bug #5736 Updated: error when i connect to foxpro database

From: Date: Sun, 16 Jun 2002 12:26:16 +0000
Subject: Bug #5736 Updated: error when i connect to foxpro database
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10604@lists.php.net to get a copy of this message
ID: 5736 Updated by: sander@php.net Reported By: ssali@dr.com, saad@itcon4u.com -Status: Open +Status: Bogus Bug Type: ODBC related Operating System: unix/lynix PHP Version: 3.0.16 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2000-07-22 14:12:32] ssali@dr.com, saad@itcon4u.com <? // LANGUAGE = asp2php converted ?> <? $f_clientid=$HTTP_POST_VARS["f_clientid"]; $f_password=$HTTP_POST_VARS["f_password"]; // $clientsdb is of type "ADODB.connection" $clientsdb=odbc_connect("host2.gxhosting.net","itcon007","SaadAli"); $sqlText="select * from clientlogin where clientid='".$f_clientid."'"; $userset_query=odbc_exec($clientsdb,($sqlText)); $userset_ptr=1; $userset=odbc_fetch_row($userset_query,$userset_ptr++); if (($userset==0)) { header("Location: "."login.php?retry=clientid & password"); exit; } else { $real_password= trim(odbc_result($userset_query,"password")); if ($f_password==$real_password) { ?> Clients Profile<br> <? echo odbc_result($userset_query,"AC_CODE"); ?> <? echo odbc_result($userset_query,"TEMP_CODE"); ?> <? echo odbc_result($userset_query,"STATUS "); ?> <? echo odbc_result($userset_query,"AGR_DATE"); ?> <? echo odbc_result($userset_query,"AC_DESC"); ?> <? echo odbc_result($userset_query,"CNT_PERSON"); ?> <? echo odbc_result($userset_query,"ADDRESS1"); ?> <? echo odbc_result($userset_query,"ADDRESS2"); ?> <? echo odbc_result($userset_query,"ADDRESS3"); ?> <? echo odbc_result($userset_query,"PHONES"); ?> <? echo odbc_result($userset_query,"FAX"); ?> <? echo odbc_result($userset_query,"E_MAIL"); ?> <? echo odbc_result($userset_query,"DLVRY_ORDR"); ?> <? echo odbc_result($userset_query,"PAY_MODE"); ?> <? echo odbc_result($userset_query,"RATE"); ?> <? echo odbc_result($userset_query,"DLVRY_DAYS"); ?> <? echo odbc_result($userset_query,"REG_BOTTLS"); ?> <? echo odbc_result($userset_query,"DISP_ON_DP"); ?> <? echo odbc_result($userset_query,"DISP_SOLD"); ?> <? echo odbc_result($userset_query,"COOLR_SOLD"); ?> <? echo odbc_result($userset_query,"BOTT_DP_PD"); ?> <? echo odbc_result($userset_query,"BOTT_DP_OS"); ?> <? echo odbc_result($userset_query,"DISP_DP_PD"); ?> <? echo odbc_result($userset_query,"DISP_DP_OS"); ?> <? echo odbc_result($userset_query,"PASS_WORD"); ?> <? } else { header("Location: "."login.php?retry=clientid & password"); exit; } } $userset_query=odbc_exec($clientsdb,($sqlText)); $userset_ptr=1; $userset=odbc_fetch_row($userset_query,$userset_ptr++); $userset=null; odbc_close($clientsdb) $clientsdb=null; ?> <html> </html> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=5736&edit=1

« previous php.bugs (#10604) next »