All greetings. For me a small problem. To a database to be stored in a cell the number. By operation of the given code all passes as it is necessary. The result is displayed in the server console. I wish to output the text from a cell and to display it in the console. At inquiry there is unit or a zero, and it would be necessary that value of a cell was displayed.
PHP Code:
public xxx(){
new error[256]
new ErrorCode
g_SqlTuple = SQL_MakeDbTuple(H_HOST,H_USER,H_PASS,H_DB)
SqlConnection = SQL_Connect(g_SqlTuple,ErrorCode,error,255)
new Handle:Query = SQL_PrepareQuery(SqlConnection, "SELECT value FROM hmk_update WHERE type='huds'")
if(!SQL_Execute(Query))
{
SQL_QueryError(Query,error,255)
server_print("[HOMKA QDB] Error: %s^n",error);
}
server_print("[HOMKA QDB] NOT Error");
new Data
Data = SQL_ReadResult(Query,0)
server_print("[HOMKA QDB] result: vakue huds - %d",Data)
}
[IMG]http://img237.**************/img237/6158/fucktesttable.jpg[/IMG]
[IMG]http://img237.**************/img237/fucktesttable.jpg/1/w1680.png[/IMG]