Raised This Month: $ Target: $400
 0% 

Wrong reading from SQL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 06-03-2010 , 16:11   Re: Wrong reading from SQL
Reply With Quote #1

try:
PHP Code:
    new Plat[12], Bankmoney[12]
    
    while(
SQL_MoreResults(Query))
    {
        
SQL_ReadResult(QuerySQL_FieldNameToNum(Query,"Stav"), Bankmoney11)
        
SQL_ReadResult(QuerySQL_FieldNameToNum(Query,"Plat"), Plat11)
        
        
g_BankMoney[id] = str_to_num(Bankmoney)
        
g_BankPlat[id] = str_to_num(Plat)
        
        
SQL_NextRow(Query)
    } 
Why do you store it in VARCHAR(10) and not integer ?
__________________
Impossible is Nothing
Sylwester is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode