07.04.2009, 06:45
I use this:
In my database, money would be 125, but in my serverprompt it shows 78, and after that the server crashes.
I think the problem is by the fetching, inserthing things to the database is going like it should, but I coundn't read them.
Somebody can help me? And yeah, I've used the search enegine of this forum but still found nothing usefull.
Stijnthegamer.
Код:
mysql_connect("127.0.0.1","root","samp","root");
printf("Connecting done");
mysql_query("SELECT money FROM gebruikers WHERE naam = 'Stijn'");
mysql_store_result();
new row[1];
new i;
while(mysql_fetch_row(row))
{
printf("%d", row[i]);
i++;
}
I think the problem is by the fetching, inserthing things to the database is going like it should, but I coundn't read them.
Somebody can help me? And yeah, I've used the search enegine of this forum but still found nothing usefull.
Stijnthegamer.

