mysql_escape_string
#1

help me please
./Pulgins/functions.pwn(312 : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(21511) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(21540) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(2168 : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(21713) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(22981) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23085) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23110) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23130) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23157) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(2325 : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23296) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23495) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(23496) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(25315) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(26599) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(29696) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(31305) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(33566) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(33567) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(33592) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(33593) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(36443) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(36444) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(36574) : error 017: undefined symbol "mysql_escape_string"
./Pulgins/commands.pwn(3733 : error 017: undefined symbol "mysql_escape_string"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#2

Whose mysql plugin are you using and which version is it?
Reply
#3

Quote:
Originally Posted by Unte99
Посмотреть сообщение
Whose mysql plugin are you using and which version is it?
mysql R7
Reply
#4

files.g-stylezzz.com/mysql/rel/R7/windows/plugin-R7-win32_vs9.rar

Make sure to move every needed file to your server folder.
Reply
#5

I use mysql R7 and stay away
Reply
#6

Quote:
Originally Posted by Wahyu33
Посмотреть сообщение
I use mysql R7 and stay away
That is a download for the R7 version. The reason why you are seeing those errors might be because you didn't copy all necessary files to your server folder.
Reply
#7

hmm ... remains equally unresolved
Reply
#8

It seems that mysql_escape_string function is only available on R33 version and newer. Try to use mysql_real_escape_string instead.

Quote:

mysql_real_escape_string( const source[], destination[] [,connectionHandle = 1] ) **

Reply
#9

it is already in R7 .. mysql_escape_string different with mysql_real_escape_string
Reply
#10

Quote:

/**
* MySQL plugin R7
* Copyright © 2008-2011, BlueG
*/

#if defined mysql_included
#endinput
#endif
#define mysql_included

/**
* Common error codes
*
* Client: http://dev.mysql.com/doc/refman/5.0/...es-client.html
* Server: http://dev.mysql.com/doc/refman/5.0/...es-server.html
*
*/

#define ER_DBACCESS_DENIED_ERROR 1044
#define ER_ACCESS_DENIED_ERROR 1045
#define ER_UNKNOWN_TABLE 1109
#define ER_SYNTAX_ERROR 1149
#define CR_SERVER_GONE_ERROR 2006
#define CR_SERVER_LOST 2013
#define CR_COMMAND_OUT_OF_SYNC 2014
#define CR_SERVER_LOST_EXTENDED 2055

// Native functions

#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")
#define mysql_next_row() mysql_retrieve_row()
#define mysql_get_field(%1,%2) mysql_fetch_field_row(%2,%1)

#define mysql_query_callback(%1,%2,%3,%4,%5) \
mysql_function_query(%5, %2, false, %3, "siii", %2, %1, %4, %5)

#define mysql_query(%1,%2,%3,%4) \
mysql_function_query(%4, %1, false, "OnQueryFinish", "siii", %1, %2, %3, %4)


native mysql_affected_rows(connectionHandle = 1);
native mysql_close(connectionHandle = 1);
native mysql_connect(const host[], const user[], const database[], const password[], port = 3306);
native mysql_data_seek(offset, connectionHandle = 1);
native mysql_debug(enable = 1);
native mysql_errno(connectionHandle = 1);
native mysql_fetch_field(number, dest[], connectionHandle = 1);
native mysql_fetch_field_row(string[], const fieldname[], connectionHandle = 1);
native mysql_fetch_row_format(string[], const delimiter[] = "|", connectionHandle = 1);
native mysql_format(connectionHandle, output[], format[], {Float,_}:...);
native mysql_field_count(connectionHandle = 1);
native mysql_free_result(connectionHandle = 1);
native mysql_get_charset(destination[], connectionHandle = 1);
native mysql_insert_id(connectionHandle = 1);
native mysql_num_rows(connectionHandle = 1);
native mysql_num_fields(connectionHandle = 1);
native mysql_ping(connectionHandle = 1);
native mysql_real_escape_string(const source[], destination[], connectionHandle = 1);
native mysql_reconnect(connectionHandle = 1);
native mysql_reload(connectionHandle = 1);
native mysql_retrieve_row(connectionHandle = 1);
native mysql_set_charset(charset[], connectionHandle = 1);
native mysql_stat(const destination[], connectionHandle = 1);
native mysql_store_result(connectionHandle = 1);
native mysql_warning_count(connectionHandle = 1);

// Cache functions

native mysql_function_query(connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:...);
native cache_get_row(row, idx, dest[], connectionHandle = 1);
native cache_get_field(field_index, dest[], connectionHandle = 1);
native cache_get_data(&num_rows, &num_fields, connectionHandle = 1);
native cache_get_field_content(row, const field_name[], dest[], connectionHandle = 1);
native enable_mutex(bool:enable);

// forward declarations

forward OnQueryError(errorid, error[], callback[], query[], connectionHandle);

Where do you see mysql_escape_string function?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)