日本語:Dbal.sql query

dbal::sql_query -- SQL クエリを送信する.

説明
resource dbal::sql_query ( [ string $query [, int $cache_ttl ]] )

例 #1
$integer = 0; $data = "This is ' some data";

$sql = 'SELECT * FROM '. POSTS_TABLE. '   WHERE post_id = '. (int) $integer. "       AND post_text = '". $db->sql_escape($data). "'"; $result = $db->sql_query($sql);

参照

 * dbal::sql_query_limit
 * dbal::sql_build_query
 * Database Abstraction Layer

Dbal.sql_query