Jump to content

Incărcare din baza de date


Recommended Posts

Salut, aș vrea să aflu care este cea mai eficientă metodă de a incărca datele din baza de date pentru MYSQL R39-6 mai exact. Am observat in mai multe gamemode-uri că se folosesc diverse căi,  spre exemplu:

1.  mysql_query(SQL,"SELECT * FROM `exemple` ORDER BY `exemple`.`ID` ASC");
     mysql_store_result();
     while(mysql_retrieve_row())
     {
        new i = index;
        mysql_get_field("ID", result);                exemple[exempleID] = strval(result);

2. new Cache: db = mysql_query(SQL, "SELECT * FROM `exemple` ORDER BY `exemple`.`ID` ASC");
     for(new i, j = cache_get_row_count (); i != j; ++i)
    {
           cache_get_field_content(i, "ID", result); x = strval(result); exemple[x][exempleID] = x;

Am căutat pe mai multe forum-uri dar nu găsesc nicăieri un tutorial despre acest subiect de accea m-am decis să deschid un topic aici. O zi bună.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.