php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5736 error when i connect to foxpro database
Submitted: 2000-07-22 14:12 UTC Modified: 2002-06-16 08:26 UTC
From: ssali at dr dot com, saad at itcon4u dot com Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 3.0.16 OS: unix/lynix
Private report: No CVE-ID: None
 [2000-07-22 14:12 UTC] ssali at dr dot com, saad at itcon4u dot 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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-16 08:26 UTC] sander@php.net
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.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Apr 07 15:01:25 2020 UTC