Another MySQL question
#1

Is there anyway to get the number of how many columns there are in the table?
Reply
#2

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.
Reply
#3

That's the thing I needed, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)