MySQL
#1

Как возвращать текст из таблицы? пробывал писать функцию, но ошибки:
error 090: public functions may not return arrays (symbol "GetMySQLName")
error 079: inconsistent return types (array & non-array)[/php]
код:
PHP код:
GetName()
{
    return 
mysql_function_query(connection"SELECT * FROM `table` WHERE `ID`=0",true,"GetMySQLName","");
}
forward GetMySQLName();
public 
GetMySQLName()
{
    new 
rows,fields,name[MAX_PLAYER_NAME];
    
cache_get_data(rows,fields,connection);
    if(
rows)
    {
        
cache_get_field_content(0"name"nameconnection);
         return 
name;
    }
    return 
0;

Reply


Messages In This Thread
MySQL - by CamperGTA - 10.05.2013, 18:30
Re: MySQL - by Stepashka - 10.05.2013, 19:03
Re: MySQL - by Jon_De - 10.05.2013, 19:19
Re: MySQL - by CamperGTA - 11.05.2013, 02:47
Re: MySQL - by Stepashka - 11.05.2013, 08:05
Re: MySQL - by Richard_Gere - 11.05.2013, 08:30
Re: MySQL - by CamperGTA - 11.05.2013, 12:12
Re: MySQL - by The_Creator - 11.05.2013, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)