MySQL Error
#1

Bit confused over this?
Код:
error 017: undefined symbol "database"
pawn Код:
stock DoesOrgExist(orgid)
{
    format(str,sizeof(str),"SELECT * FROM `orgs` WHERE `Orgid` = %d LIMIT 1",orgid);
    if(!db_query(DB: database, str))
    {
        mysql_free_result();
        return 1;
    }
    return 0;
}
Reply
#2

You need to define "database" in your script (at the top).
Reply
#3

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
You need to define "database" in your script (at the top).
I realised it was because I was using a_mysql, not mysql so

if(!db_query(DB: database, str))

changed to

if(!mysql_query(str))

Thanks anyway
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)