Raised This Month: $ Target: $400
 0% 

Calculate Sql Tabels


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
schuballaa
Junior Member
Join Date: May 2007
Location: Germany - Bremen
Old 05-15-2007 , 15:19   Calculate Sql Tabels
Reply With Quote #1

Hello,
i hope u can help me.
I want to Calculate (+) the inserts of Cell 1 then Save this under result1
Then the inserts of Cell 2 thens save it under result2.

Then i want to Count the enterys (see Picture) here it is =2

I don't have any idear how i do this. I tryed everything, but i a noob in this programmin language.



I hope u know what i mean, hope this image helps

!Very importand!

The table gets every Day 1-13 inserts more, so the do/while must count all inserts... thats why i ask u 4 help.

Here is my Code,

Code:
 public read(){
 new Result:result
 result = dbi_query(dbc,"SELECT 1 FROM zbktb")
 dbi_nextrow(result)
 server_print("[AMXX] I get this: %i ",result)
 return PLUGIN_HANDLED
     }

Last edited by schuballaa; 05-15-2007 at 15:22. Reason: Please Move this Thred to the right Scripting help forum - sorry 4 posting in superhero
schuballaa is offline
Send a message via ICQ to schuballaa Send a message via MSN to schuballaa
 



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 10:43.


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