15.12.2013, 15:33
If this is the line that the error is on:
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:
To:
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.
Код:
data = cache_get_field_content_int(0,"id",dbhandle);
Simply change these lines:
Код:
data = cache_get_field_content_int(0,"id",dbhandle); //mysql_fetch_field("id",data); maxautos=strval(data);
Код:
maxautos = cache_get_field_content_int(0,"id",dbhandle);