Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
400 views
in Q2A Core by

I'm new to PHP and most of my interactions with database have been through ORMs, though I do understand SQL. 

I was looking over this framework's "set" functions and noticed this syntax: 

    INSERT INTO ^uservotes (postid, userid, vote)...

Does the ^ refer to the "qa_" of the qa_uservotes table? Or is it simply a variable that's defined earlier? Regardless, where is this configuration defined in the app? 

1 Answer

0 votes
by
 
Best answer
Yes, ^ refers to the table prefix, which is defined in the qa-config.php file.

You can see all the logic for substitutions (also $ and #) in the function qa_db_apply_sub() in the qa-db.php file.
...