Some Errors in my Stock
#2

If this is the line that the error is on:

Код:
 data = cache_get_field_content_int(0,"id",dbhandle);
The problem is that data is a string and you are assigning it a value using a function that returns an integer.

Simply change these lines:

Код:
 data = cache_get_field_content_int(0,"id",dbhandle); 
 //mysql_fetch_field("id",data); 
 maxautos=strval(data);
To:

Код:
maxautos = cache_get_field_content_int(0,"id",dbhandle);
Although, I'm not sure that is exactly what you want to do as it will simply get the ID from the first row that the result returned.
Reply


Messages In This Thread
[MySQL] Get Free CarID Error - by HellYeah - 15.12.2013, 14:10
Re: Some Errors in my Stock - by Chenko - 15.12.2013, 15:33
AW: Re: Some Errors in my Stock - by HellYeah - 15.12.2013, 15:39
Re: Some Errors in my Stock - by Chenko - 15.12.2013, 15:45
AW: Some Errors in my Stock - by HellYeah - 15.12.2013, 16:03
AW: Re: Some Errors in my Stock - by HellYeah - 15.12.2013, 16:31
AW: Some Errors in my Stock - by HellYeah - 15.12.2013, 18:26
Re: Some Errors in my Stock - by Chenko - 16.12.2013, 00:42
Re: Some Errors in my Stock - by HellYeah - 16.12.2013, 07:21
AW: Some Errors in my Stock - by HellYeah - 17.12.2013, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)