Answered: new variable create?

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

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:
Ken Griffin’s flagship hedge fund at Citadel rises 10.2% in volatile 2025
Ilya Lichtenstein, Bitcoin hacker behind massive crypto theft, credits Trump for early prison release
Be careful buying the top 10 ETFs of 2025: They have 'very little, if any' role in your portfolio, says expert
Anthropic's 'do more with less' bet has kept it at the AI frontier, co-founder Amodei tells CNBC
These are the most overbought and oversold stocks in the S&P 500 as 2026 begins
South Korea's Lee begins China state visit after North fires missiles
First GLP-1 pill for obesity from Novo Nordisk launches in the U.S. 
Overspent this holiday season? 3 easy ways to pay down debt
Ousted Venezuelan leader Maduro gets Julian Assange's lawyer to represent him in drug case
Comcast spinoff Versant starts trading on Nasdaq in rare media debut