
10-23-2006, 02:11 AM
|
 |
|
|
Join Date: Sep 2004
Location: Hanoi Capital
Posts: 630
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by lazyindian
There is a bug in the code i guess ...there is an extra pair of qoutes around get_direct_links_table
see below ... this solved the mysql error
Code:
function doHistory($links,$number) {
global $vbulletin;
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "`get_direct_links_table`
(`userid`,`thedate`,`links`,`number`)
VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}
change to
Code:
function doHistory($links,$number) {
global $vbulletin;
$vbulletin->db->query_write("INSERT INTO " . TABLE_PREFIX . "get_direct_links_table
(`userid`,`thedate`,`links`,`number`)
VALUES ('" . $vbulletin->userinfo['userid'] . "', NOW(), '" . $links . "'," . $number . ");");
}
thanx for the hack  works great now ...*clicks install*
|
Yes, I'm very sorry for this problem
Thank you, lazyindian
|