MySQL get Name
#3

Quote:
Originally Posted by Flake.
Посмотреть сообщение
PHP код:
GetNameFromSQL_ID(sqlid)
{
    new 
query[128], name[64];
    
mysql_format(SQL_CONNECTIONquerysizeof(query), "SELECT Name FROM `Your_Table` WHERE ID = %d LIMIT 1"sqlid);
    new 
Cache:result mysql_query(SQL_CONNECTIONquery);
    
cache_get_field_content(0"Name"nameSQL_CONNECTION64);  //or what ever your players name saves as
     
cache_delete(result);
    return 
name;

Something like that should work.
Thank you so much. +REP'd
Reply


Messages In This Thread
MySQL get Name - by Ahmed21 - 24.07.2016, 14:24
Re: MySQL get Name - by Flake. - 24.07.2016, 14:45
Re: MySQL get Name - by Ahmed21 - 24.07.2016, 15:08
Re: MySQL get Name - by Konstantinos - 24.07.2016, 15:38

Forum Jump:


Users browsing this thread: 2 Guest(s)