Hello Josh,
For legal reasons we cannot share the code of tbg-QuantDesk.
Anyway, i can give you some suggestions:
1) tbg-Quant by defautl use an in-memory DB, if you want to use PHP to connect to that DB you need to switch from in-memory to persistence DB.
Edit youir tbg-Quant.config file and change the default setting.
2) Then, run your TBG, it will store persistence data in your DB
4) tbg-QuantDesk is using Jetty server with this configuration that works like a charm
<?xml version="1.0"?>
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<New id="database" class="org.eclipse.jetty.plus.jndi.Resource">
<Arg>java:comp/env/jdbc/database</Arg>
<Arg>
<New class="org.apache.commons.dbcp.BasicDataSource">
<!-- ## H2 DB ## -->
<Set name="url">jdbc:h2:C:/Temp/test/tbg-quant/data/tbgdb;AUTO_SERVER=TRUE;MODE=MYSQL</Set>
<!-- ## MySQL ## -->
<!--<Set name="url">jdbc:mysql://localhost:3306/test</Set>-->
<Set name="username">sa</Set>
<Set name="password"/>
</New>
</Arg>
</New>
</Configure>
5) Once you connected to the DB, you can basically access to every table, use the H2 client to browse around and get the idea.
Check their website with many examples of real time graphs.
7) everythings shoulb be mixed up with HTML :-)
Hope this helps,
bye