The Site Footer variable (as configured on the /admin/settings/site-information
page) is stored in the variables
table. The variables
table has two columns: name
and value
. The value is obviously stored in the value
column and it is identified as site_footer
in the name
column. So:
SELECT value FROM variable WHERE name = 'site_footer'
...will give you the current value. Note that the value is serialized, so make sure you're familiar with how that works if you plan on trying to change it directly in the database.