use this
Code:
dbi_query(dbc,"SELECT * FROM `myTable` WHERE `myColumn` = '%s'", player_ip)
if(result >= RESULT_OK)
{
client_print(id,print_chat,"The IP are registered in DATA BASE")
}
else {
client_print(id,print_chat,"The IP are not registered in DATA BASE")
}
And you should only connect to the database once. Not everytime someone connects.
Also "client_connect" is already a function you shouldn't use what you are doing.