How to do this? (MySQL query)
#5

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Like any other query, it's the same thing.

pawn Код:
mysql_query("SELECT column_name FROM information_schema.columns WHERE table_name = 'adminperks'");
mysql_store_result();

new columns[10];

while(mysql_fetch_row(columns)) printf("Column name: %s",columns);

mysql_free_result();
Yea but this will get all the fields independent of wether they are set to 1 or not.
Reply


Messages In This Thread
How to do this? (MySQL query) - by hanzen - 03.01.2011, 15:27
Re: How to do this? (MySQL query) - by JaTochNietDan - 03.01.2011, 15:33
Re: How to do this? (MySQL query) - by hanzen - 03.01.2011, 15:34
Re: How to do this? (MySQL query) - by JaTochNietDan - 03.01.2011, 15:37
Re: How to do this? (MySQL query) - by _rAped - 03.01.2011, 15:39
_rAped - by hanzen - 03.01.2011, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)