Help with MySQL
#1

I am using the a_sampmysql and I am completely new to it.
Now I have this:
PHP код:
public MySQLFetchFactionRecord(sqlfactionidsqlresult[]) // by Luk0r
{
    new 
query[128];
    
format(querysizeof(query), "SELECT * FROM `factions` WHERE `factionid` = '%d' LIMIT 1"sqlfactionid);
    
samp_mysql_query(query);
    
samp_mysql_store_result();
    if(
samp_mysql_fetch_row(sqlresult)==1)
    {
        
samp_mysql_free_result();
        return 
1;
    }
    return 
0;

I understood from this that it will take from table factions where the faction id is equal to faction id mentioned in the public.
But what I don't understand is, what's the sqlresult?
Reply


Messages In This Thread
Help with MySQL - by [IL]HeHu - 20.06.2011, 15:11
Re: Help with MySQL - by Alvord - 20.06.2011, 15:27
Re: Help with MySQL - by [IL]HeHu - 20.06.2011, 16:09
Re: Help with MySQL - by Alvord - 20.06.2011, 16:11
Re: Help with MySQL - by [IL]HeHu - 20.06.2011, 16:36
Re: Help with MySQL - by [IL]HeHu - 21.06.2011, 16:16

Forum Jump:


Users browsing this thread: 1 Guest(s)