Warning: odbc_exec(): supplied argument is not a valid ODBC-Link resource in F:\Appserv\www\pbtest\include\connect.class.php on line 28
Warning: odbc_result(): supplied argument is not a valid ODBC result resource in F:\Appserv\www\pbtest\index.php on line 73
select Code (PHP)
$query = $CNeoSQL->QueryRanGame("SELECT * FROM accounts");
$username = odbc_result($query, "login");
connect class เชื่อมต่อ mysql ได้แล้ว แต่งงตรง select อ่ะครับ Code (PHP)
protected function SQLQuery($query,$connect)
{
return odbc_exec($connect,$query);
}
public function QueryRanGame($query)
{
return CNeoSQLConnect::SQLQuery($query,CONNECT_RANGAME);
}