News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

"Hacking attempt" calling db_query from custom page.

Started by yutt, October 29, 2006, 11:23:46 PM

Previous topic - Next topic

yutt

I've made a custom forum page following the custom action guide. However, whenever trying to use db_query to access the database, I receive the "hacking attempt" error message.

Is there somewhere I need to white-list the new page to use the db_query function?

SleePy

how are you using the db_query function?

http://dev.simplemachines.org/function_db/index.php?action=view_function;function=247


db_query("
                SELECT name
                FROM {$db_prefix}member
                WHERE ID_MEMBER = $ID_MEMBER", __FILE__, __LINE__);
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: