Creating object from MySQL [+rep?]
#2

Mysql fetch string so u need to make a string and convert it to float or integar
pawn Код:
new data[12],int;
 mysql_fetch_field_row(data,"model"); int = strval(data);//convert string to int
 ta[12];
 mysql_fetch_field_row(data,"PosX"); Val[1] = floatstr(data);//convert string tp float
Also u forgot mysql_store_result,

edit:model is integar not a float
Reply


Messages In This Thread
Creating object from MySQL [+rep?] - by Michael@Belgium - 11.03.2012, 10:55
Re: Creating object from MySQL [+rep?] - by Shabi RoxX - 11.03.2012, 11:06
Re: Creating object from MySQL [+rep?] - by Michael@Belgium - 11.03.2012, 11:35
Re: Creating object from MySQL [+rep?] - by Shabi RoxX - 11.03.2012, 11:39
Re: Creating object from MySQL [+rep?] - by Vince - 11.03.2012, 12:16
Re: Creating object from MySQL [+rep?] - by Michael@Belgium - 11.03.2012, 12:50
Re: Creating object from MySQL [+rep?] - by Michael@Belgium - 15.03.2012, 16:30
Re: Creating object from MySQL [+rep?] - by iPLEOMAX - 15.03.2012, 16:36
Re: Creating object from MySQL [+rep?] - by SimonItaly - 15.03.2012, 16:40
Re: Creating object from MySQL [+rep?] - by Michael@Belgium - 15.03.2012, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)