04.12.2016, 16:13
[Plugin] [REL] MySQL Plugin (Now on github!)
04.12.2016, 18:08
Can you compile for debian 8 ?
04.12.2016, 20:18
06.12.2016, 01:57
(
Последний раз редактировалось RIDE2DAY; 06.12.2016 в 02:57.
)
Good job maddinat0r, I love mysql_connect_file and cache_insert_id. By the way, how can multiple SQL statements be sent with this plugin? Adding a semicolon after each statement?
Should cache_get_result_count and cache_get_row_count be used first as a condition always? Why would they fail? I mean, is there any difference between the following two examples?
Should cache_get_result_count and cache_get_row_count be used first as a condition always? Why would they fail? I mean, is there any difference between the following two examples?
PHP код:
/* Query */
mysql_pquery(sql_handle, "SELECT `id`, `password` FROM `player_info` WHERE `name`='RIDE2DAY' LIMIT 1", "CheckAccount");
/* CheckAccount Callback */
/* Method #1 */
new results;
if(cache_get_result_count(results))
{
cache_set_result(0);
new rows;
if(cache_get_row_count(rows))
{
if(rows)
{
// Log In
}
else
{
// Register
}
}
}
/* Method #2 */
cache_set_result(0);
new rows;
cache_get_row_count(rows);
if(rows)
{
// Log In
}
else
{
// Register
}
06.12.2016, 06:22
Quote:
Good job maddinat0r, I love mysql_connect_file and cache_insert_id. By the way, how can multiple SQL statements be sent with this plugin? Adding a semicolon after each statement?
Should cache_get_result_count and cache_get_row_count be used first as a condition always? Why would they fail? I mean, is there any difference between the following two examples? PHP код:
|
Код:
/* Query */
mysql_pquery(sql_handle, "SELECT `id`, `password` FROM `player_info` WHERE `name`='RIDE2DAY' LIMIT 1", "CheckAccount");
/* CheckAccount Callback */
/* Method #1 */
new results;
cache_get_result_count(results);
if(results)
{
new rows;
cache_get_row_count(rows);
if(rows)
{
// Log In
}
else
{
// Register
}
}
09.12.2016, 15:45
The mysql_log function doesn't work with R41-2.
Код:
error 017: undefined symbol "LOG_ERROR"
09.12.2016, 15:59
Quote:
The mysql_log function doesn't work with R41-2.
Код:
error 017: undefined symbol "LOG_ERROR" |
https://sampforum.blast.hk/showthread.php?tid=616103
05.02.2017, 17:32
10.02.2017, 19:01
How can we use the LIKE '%...%' clause? since the plugin converts ' into ", while mysql requires ' ' around the %...%
10.02.2017, 21:31
Quote:
How can we use the LIKE '%...%' clause? since the plugin converts ' into ", while mysql requires ' ' around the %...%
|
10.02.2017, 21:44
Quote:
Use two percent signs. More info here.
|
Format: LIKE '%SEARCHEDTERM%'
we cant type ' via pawn, as the plugin will convert it into "
10.02.2017, 21:52
Quote:
%% arent a problem, the problem is typing ' '
Format: LIKE '%SEARCHEDTERM%' we cant type ' via pawn, as the plugin will convert it into " |
PHP Code:
mysql_format(conn, mquery, sizeof(mquery), "SELECT OwnerName,PhoneNumber FROM phones WHERE OwnerName LIKE '%%%e%%' AND ShowPhonebook = 1 LIMIT 25", params);
11.02.2017, 06:02
Thanks buddy, have a cookie.
19.02.2017, 11:16
I have a new laptop, it's pretty new.. (kaby lake).
I installed the required packages. MySQL still fails to load on windows. R41-2.
I installed the C connector, and OpenSSL 1.0.2k 32 and 64 bit side to side (since the latest C connector uses 1.0.2 by default now ).
Still not loading
I installed the required packages. MySQL still fails to load on windows. R41-2.
I installed the C connector, and OpenSSL 1.0.2k 32 and 64 bit side to side (since the latest C connector uses 1.0.2 by default now ).
Still not loading
19.02.2017, 15:38
Quote:
I have a new laptop, it's pretty new.. (kaby lake).
I installed the required packages. MySQL still fails to load on windows. R41-2. I installed the C connector, and OpenSSL 1.0.2k 32 and 64 bit side to side (since the latest C connector uses 1.0.2 by default now ). Still not loading |
19.02.2017, 22:46
(
Last edited by Kar; 22/02/2017 at 12:18 PM.
)
Windows 10 x64, I haven't tried building yet. My Visual Studio is still getting ready. I'm going to try when it's done.
log-core.so and mysql.so (32 bit) (dynamically linked) compiled on Ubuntu Trusty 14.04.
https://www.mediafire.com/?6pizjdu8n...movhmp7x17i60l
log-core.so and mysql.so (32 bit) (dynamically linked) compiled on Ubuntu Trusty 14.04.
https://www.mediafire.com/?6pizjdu8n...movhmp7x17i60l
21.02.2017, 17:15
Hello! After omission of MySQL is disconnected from the server, and restores the connection is not re-encoding.
What solution ?
What solution ?
22.02.2017, 12:55
mysql_escape_string why? how to fix?
26.02.2017, 22:02
07.03.2017, 18:12
I feel like the next version should be tested with 5.6 and 5.7
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)