Another MySQL question
#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


Messages In This Thread
Another MySQL question - by Exxious - 11.04.2011, 16:52
Re: Another MySQL question - by Alby Fire - 11.04.2011, 17:14
Re: Another MySQL question - by Exxious - 11.04.2011, 17:32

Forum Jump:


Users browsing this thread: 1 Guest(s)