Re: [INC] SQLVault
Quote:
You can use the read all function and then sort the cell array. REPLACE will update when the primary key is found to be a duplicate from the one being inserted, and a new entry will be entered if the primary key does not exist. It is basically the same as using INSERT INTO and the ON DUPLICATE KEY UPDATE clause. |
Re: [INC] SQLVault
Yes, I did not think so. Now I read read all function, I understood.
Well, this was only a suggestion: D And i know if you want to use it, You need to know something more than the basics. But what happens to the protagonists of this thread(medium - low level programming) do you think that he know how to mix with sorting. Remember sorting is not easy to use, half complicated if this is your first time using it.(or to me) but I think if you do that, you need to modify the code a "bit much". :P Yes, i know this is to everybody, not just specific people, but as I said, it's only a suggestion :D I'm glad that someone has taken the time to do this. |
Re: [INC] SQLVault
Sorting is not hard at all, actually.
I'm not just saying that because I'm experienced in it either. AMXX has sorting functions which makes things easier and is very easy to understand. In this case, ArraySort() would be used and there are plenty examples to help people who have never used it. |
Re: [INC] SQLVault
haha found only replys from you, using ArraySort: D
Well I never used ArraySort, so now I will see and if I understand it, maybe I will make an example of how to make a top15: D (sql + sort) |
Re: [INC] SQLVault
nicely done;
awesome; +karma!!!!!!!! |
Re: [INC] SQLVault
Fan-fuckin-tastic:up: really nice job exolent.
|
Re: [INC] SQLVault
Quote:
I was considering making a tutorial on this and implementing it into a ranking system, but I feel it will not do much good. Most intermediate-level programmers will not be able to grasp qsort, and the ones that are able to will probably have already had some experience with it. Bubblesort and insertion sorting are less efficient and may not be worth teaching in a full tutorial. EDIT: Sorry, got a bit off-topic. |
Re: [INC] SQLVault
WoooowWW, Exelent Work.!!
|
Re: [INC] SQLVault
Thanks a lot, it is very helpfull for my =D
|
Re: [INC] SQLVault
I have a problem using this.
I've created another plugin using this and it works fine. But now it keeps saying the SQlite isn't enabled. i can't figure this out. in my plugin: PHP Code:
Code:
L 01/18/2011 - 18:26:02: [test.amxx] SQLite module needs to be enabled in modules.ini to open local database Code:
Currently loaded modules: Code:
i'm still new to this stuff. :oops: |
All times are GMT -4. The time now is 15:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.