|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Guys ,
i got this problem.This my code for connection: class BankAcc { //var $Relative="/Personal/PHP_PROJ/Pics/JPG"; function Connect( ) { $connection = odbc_connect("dsnPortal", " ", ""); if (!$connection) { exit("Connection Failed: " . $connection); } // turn off autocommit odbc_autocommit($connection, FALSE); // put everything on sale //odbc_commit($connection); $query2=" INSERT into Transaction_OB(mAmount,Transaction,date,cAccountNo )VALUES ('2','2','2/8/90','2') "; if (!$query2) { exit("Error in SQL"); } $resultq = odbc_commit($connection,$query2); odbc_commit($connection); odbc_close($connection); } the error message: An online Banking System Warning: odbc_connect(): SQL error: , SQL state 00000 in SQLConnect in c:\Inetpub\wwwroot\RMSP\BankMain.php on line 20 Connection Failed: help me.
__________________
The impossible doesnot Exist! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |