Answered: new variable create?

Post date: 2021-01-19 23:47:13
Views: 145

The function qa_opt() can be used for both setting and getting an option value.

qa_opt('site_titlex', 'test forum ...')  # set value
$var = qa_opt('site_titlex')             # get value

Options are stored in the database table qa_options:

MariaDB db]> describe qa_options;
+---------+----------------+------+-----+---------+-------+
| Field   | Type           | Null | Key | Default | Extra |
+---------+----------------+------+-----+---------+-------+
| title   | varchar(40)    | NO   | PRI | NULL    |       |
| content | varchar(12000) | NO   |     | NULL    |       |
+---------+----------------+------+-----+---------+-------+
2 rows in set (0.01 sec)

so you could also manually add an option to the database

INSERT INTO qa_options VALUES ('site_titlex', 'test forum ...');

and then just use qa_opt('site_titlex') in Q2A.

Please click Here to read the full story.
 
Other Top and Latest Questions:
CBS postpones '60 Minutes' report on El Salvador's CECOT prison
Neuroscience researcher: The dopamine-boosting morning routine I use to start my day in a good mood
Paramount guarantees Larry Ellison backing in amended WBD bid
Gold and silver prices soar to new highs as the yellow metal reemerges as a hedge
Why the 2025 stock market rally can continue in 2026, according to UBS
'Witch hunt': Ex-EU commissioner Breton denounces U.S. visa ban targeting 'censorship'
Oil giant BP to sell 65% stake in $10 billion Castrol unit
DOJ says more than 1 million potential Epstein files newly uncovered
Epstein files: DOJ restores image showing Trump after backlash
Flash flooding in northern California leads to soaked roads, water rescues and one death