|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
hi all,
I am using ODBC to get data from my DB as follow: $sql="select sum(Minutes) from UsePerDay where UsedForContract=$ContractID and UsedForCredit=$CreditID"; $Resultid=odbc_exec($Connect,$sql); $TotalTime=odbc_result_all($Resultid); My problem is that I want to have the no of TotalTime but it contains 1 not the number that I want , and it writes the number on the screen but I want to have that number. any help is appreciated. naghmeh |
|
#2
|
|||
|
|||
|
PHP Code:
Give that a try. |
|
#3
|
|||
|
|||
|
Dear anthony
Thank you for your help but it did not work. fortunatly one of my freinds helped me out and for your knowledge I send you the code : $sql="select sum(Minutes) from UsePerDay where UsedForContract=$ContractID and UsedForCredit=$CreditID"; $Resultid=odbc_do($connect,$sql); odbc_result_all($Resultid); odbc_fetch_row($Resultid); $sum=odbc_result($Resultid,1); thanks again naghmeh |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > I have a PHP and ODBC problem,plz |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|