Raised This Month: $51 Target: $400
 12% 

How to store SQL data in arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gior
Member
Join Date: Sep 2013
Location: Israel
Old 10-09-2014 , 20:48   How to store SQL data in arrays
Reply With Quote #1

Hi,
I want to store some data from a SQL Table in Arrays. (The Results)
Let's say I have this line:
PHP Code:
Format(querysizeof(query), "SELECT * FROM banlist WHERE permanent = '0'"
So, How can I store the given data in Array?


Thanks in Advance.

Last edited by Gior; 10-10-2014 at 13:02.
Gior is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 10-09-2014 , 23:21   Re: How to store SQL data in arrays
Reply With Quote #2

What do you want in the arrays? That query string, or the results that the query provides?
Marcus_Brown001 is offline
sim242
AlliedModders Donor
Join Date: Dec 2012
Location: England
Old 10-10-2014 , 04:06   Re: How to store SQL data in arrays
Reply With Quote #3

"data from a SQL Table in Arrays." I think he means he wants the results stored in an array.
__________________
Steam - Sim
Request a private plugin
Not accepting requests at this time
sim242 is offline
Send a message via Skype™ to sim242
Gior
Member
Join Date: Sep 2013
Location: Israel
Old 10-10-2014 , 06:53   Re: How to store SQL data in arrays
Reply With Quote #4

Quote:
Originally Posted by Marcus_Brown001 View Post
What do you want in the arrays? That query string, or the results that the query provides?
Quote:
Originally Posted by sim242 View Post
"data from a SQL Table in Arrays." I think he means he wants the results stored in an array.
The results, like sim242 said.
Gior 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 07:48.


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