MySQL Help
#2

I'm not sure how your current code works when you don't even have mysql_query but anyway, try this.

pawn Код:
public LoadFactions()
{
      new uptoid;
      mysql_query("SELECT * FROM factions");
      mysql_store_result();
      while(mysql_retrieve_row())
      {
        mysql_fetch_field_row(FactionInfo[uptoid][Name], "Name");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank1], "Rank1");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank2], "Rank2");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank3], "Rank3");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank4], "Rank4");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank5], "Rank5");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank6], "Rank6");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank7], "Rank7");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank8], "Rank8");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank9], "Rank9");
        mysql_fetch_field_row(FactionInfo[uptoid][Rank10], "Rank10");
        uptoid++;
     }
     mysql_free_result();
     return 1;
}
Reply


Messages In This Thread
MySQL Help - by AustinJ - 14.08.2011, 00:21
Re: MySQL Help - by [HiC]TheKiller - 14.08.2011, 01:04

Forum Jump:


Users browsing this thread: 1 Guest(s)