hi i need some help with this,
i've done some research on this and the only thing i came up with is that dynamic sql is the only way to use a variable for table name. Is this true??? If so, how would you do that with the following code?
$db = $SESSION['User'];
$db = $db . "buddies";
$online_query = "select buddy_name from $db WHERE online= 'n'";
any help is truly appreciated. thanks in advance....
dlc