Mysql Syntax
#4

Try changing the hyphen to an underscore, I don't think you can use hyphens in column names.
(thanks Doefler)

You need to store the result.
mysql_fetch will return 0 if there are no more rows in the result.
so use
pawn Код:
mysql_store_result(connection);
while(mysql_fetch_row_format(,variable," ",connection))
{
     //process data ( try sscanf )
}
mysql_free_result(connection);
Reply


Messages In This Thread
Mysql Syntax - by Kyle - 08.11.2010, 22:34
Re: Mysql Syntax - by DarrenReeder - 08.11.2010, 22:36
Re: Mysql Syntax - by Kyle - 09.11.2010, 09:21
Re: Mysql Syntax - by Rachael - 09.11.2010, 09:23
Re: Mysql Syntax - by iJumbo - 09.11.2010, 12:47
Re: Mysql Syntax - by Cameltoe - 09.11.2010, 12:54
Re: Mysql Syntax - by Bumbis - 09.11.2010, 13:14
Re: Mysql Syntax - by LarzI - 09.11.2010, 13:20
Re: Mysql Syntax - by Cameltoe - 09.11.2010, 13:27

Forum Jump:


Users browsing this thread: 2 Guest(s)