Jump to content

salvare baza de date


Recommended Posts

Am facut un sistem de raport pt admini, totul merge cum trebuie pana dau restart la server, adica nu se salveaza in baza de date.

    format(rQuery[0], 512, "UPDATE `admins` SET `MinAdminReports` = '%d'", Amount);
    mysql_tquery(DB_Connect, rQuery[0], "", "");

 

Link to comment
Share on other sites

Ai cumva rQuery sub forma de new rQuery[numar][string_size] ?

Daca nu (cel mai probabil nu), in codul tau tu incerci sa formatezi un string si sa il pui intr-un singur caracter si ma mir ca nu iti da eroare.

format(rQuery, 512, "UPDATE `admins` SET `MinAdminReports` = '%d'", Amount);     mysql_tquery(DB_Connect, rQuery, "", "");

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.