Speed
Purchase
Evaluate
Partners
F.A.Q.
RIVAR
Home
 
 

 

 

CODE:NEO ODBC / DATABASE ACCESS

Naturly CODE:NEO programmers have access to any database API they choose such as ADO, SQL SDK, DAO, ODBC, MySQL, et. al., however the CODE:NEO programmers have gone a step further to provide C++ classes that can make database programming a breeze.

CODE:NEO Database Programming Classes

In addition CODE:NEO also has a dyanamic database class that allows developers complete freedom to link and grow relational database data in ODBC datasources without having to maintain complex database structure.

This unique approach to organise the data leads to quicker and more diverse application development. Contact us for more details.

<html>

<%Cn scope="global">

                #include <CnOdbc.h>

                CnOdbcConn rDb;

</Cn%>

<body>

                <%Cn>

                rDb.DataSource="ODBCDataSourceName";

                if(rDb.connect().isSuccess()){

                CnResult dbqresdbqres;

                </Cn%>

                <form name=f>

                <center>

                <font size="7"><a href="?">RazorTrack</a></font><br><br>

                <img src="darwin.jpg"><br><br>

 

                DATA: <select name=data>

                <%Cn>

                  CnDbQuery *rQ=rDb.getQueryObject();

                  rQ=rDb.getQueryObject();

                  dbqresdbqres=rQ->runQuery(&formatStr("SELECT data FROM tableName"));

                  if( dbqresdbqres.isSuccess()){

                    while(rQ->getNextRow().isSuccess()){

                      </Cn%><option <%Cn>if(getArgument("data")==rQ->columnC("data"))swrite("selected");</Cn%>

                      value="<%Cn>swritef("%s",rQ->columnC("data"));</Cn%>"><%Cn>swrite(rQ->columnC("data"));</Cn%></option><%Cn>

                    }

                    } else {

                      swritef("query failed %s<br>",dbqresdbqres.getMessage());

                    }

                </Cn%>

                </select>

                </form>

                <%Cn>

                }

                </Cn%>

</body>

</html>