$cat_id = request_var('cat_id', 8);
and found nothing happening. but i'll keep trying....

SQL ERROR [ mysql4 ]
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT smiley_url FROM chindus3_smilies WHERE smiley_id = 898)' [1064]
SQL
SELECT smiley_id FROM chindus3_smilies WHERE smiley_id <> 898 AND smiley_url = (SELECT smiley_url FROM chindus3_smilies WHERE smiley_id = 898)
BACKTRACE
FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()
FILE: includes/mods/smilies_categories.php
LINE: 123
CALL: dbal_mysql->sql_query()
FILE: includes/acp/acp_icons.php
LINE: 460
CALL: update_smiley_categories()
FILE: includes/functions_module.php
LINE: 507
CALL: acp_icons->main()
FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()



$sql = 'SELECT smiley_id FROM ' . SMILIES_TABLE . '
WHERE smiley_id <> ' . $smiley_id . '
AND smiley_url = (SELECT smiley_url FROM ' . SMILIES_TABLE . ' WHERE smiley_id = ' . $smiley_id . ')'; $sql = 'SELECT smiley_url FROM ' . SMILIES_TABLE . ' WHERE smiley_id = ' . $smiley_id;
$db->sql_query($sql);
$smiley_url = $db->sql_fetchfield('smiley_url');
$db->sql_freeresult();
$sql = 'SELECT smiley_id FROM ' . SMILIES_TABLE . '
WHERE smiley_id <> ' . $smiley_id . '
AND smiley_url = ' . $smiley_url;
SQL ERROR [ mysql4 ]
Unknown table 'boxe' in where clause [1109]
SQL
SELECT smiley_id FROM chindus3_smilies WHERE smiley_id <> 898 AND smiley_url = boxe.gif
BACKTRACE
FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()
FILE: includes/mods/smilies_categories.php
LINE: 128
CALL: dbal_mysql->sql_query()
FILE: includes/acp/acp_icons.php
LINE: 460
CALL: update_smiley_categories()
FILE: includes/functions_module.php
LINE: 507
CALL: acp_icons->main()
FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()

$sql = 'SELECT smiley_url FROM ' . SMILIES_TABLE . ' WHERE smiley_id = ' . $smiley_id;
$db->sql_query($sql);
$smiley_url = $db->sql_fetchfield('smiley_url');
$db->sql_freeresult();
$sql = 'SELECT smiley_id FROM ' . SMILIES_TABLE . '
WHERE smiley_id <> ' . $smiley_id . '
AND smiley_url = \'' . $smiley_url . '\'';



Users browsing this forum: justc5q and 6 guests