News:

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

Main Menu

Pulling info from themes DB

Started by GC, March 29, 2007, 12:44:13 PM

Previous topic - Next topic

GC

Hello. I'm trying to pull info from my themes DB. What im trying to pull is something from a variable called PWND_list and the value of it has names entered from code i already have done and working.

The ID_MEMBER is gathered by the use of $_GET['ID'].

Here is my code to pull info from:
$PWND_usr = mysql_fetch_assoc(db_query("SELECT 'ID_MEMBER' , 'value' FROM {$db_prefix}themes WHERE ID_MEMBER = '" . $_GET['ID'] . "' AND 'variable' = 'PWND_list' ", __FILE__, __LINE__));

may I ask what is wrong with it? It doesn't pull out anything.

Advertisement: