MySQL Error
#1

PHP код:
stock ReadConf()
{
        new 
query[356],line[1050];
        
format(querysizeof(query), "SELECT * FROM `chest` WHERE `id` = '1'");
        
mysql_query(query);
        
mysql_store_result();
        
mysql_fetch_row(line);
        new 
fetch[90];
        
mysql_get_field("ownerid"fetch);
        
printf("%d",fetch);
        return 
1;
}
main()
{
ReadConf();

But it print "0", and ownerid is 5.
Help please.
Reply


Messages In This Thread
MySQL Error - by ProjectGANTON - 01.08.2012, 16:04
Re: MySQL Error - by iggy1 - 01.08.2012, 16:09
Re: MySQL Error - by ProjectGANTON - 01.08.2012, 17:05
Re: MySQL Error - by Vince - 01.08.2012, 17:05
Re: MySQL Error - by ProjectGANTON - 01.08.2012, 17:26
Re: MySQL Error - by Vince - 01.08.2012, 17:40
Re: MySQL Error - by ProjectGANTON - 01.08.2012, 17:45
Re: MySQL Error - by ProjectGANTON - 01.08.2012, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)