Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive
Threaded Mode
Another MySQL question
Exxious
Big Clucker
Posts: 58
Threads: 3
Joined: Jan 2011
Reputation:
0
#1
11.04.2011, 16:52
Is there anyway to get the number of how many columns there are in the table?
Find
Reply
Alby Fire
Big Clucker
Posts: 125
Threads: 5
Joined: Dec 2010
Reputation:
0
#2
11.04.2011, 17:14
If you mean how many records stored in the table, use
pawn Код:
mysql_query
(
"SELECT COUNT(table_name) FROM `random_field_name`"
)
;
mysql_store_result
(
)
;
This function will return the value through mysql_fetch_int();
Or.. if you mean how many fields are there in a table, I guess ain't possible.
Find
Reply
Exxious
Big Clucker
Posts: 58
Threads: 3
Joined: Jan 2011
Reputation:
0
#3
11.04.2011, 17:32
That's the thing I needed, thanks.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 2 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive