我正在尝试从 dd =' thiruvallur' 中获取价值,但是它无法使用mysql但是无法使用pgsql(请告诉我)
include('connection.php');
$value='Thiruvallur';
echo $result = pg_exec($db,'SELECT "DD" FROM "table name" where "DD"=$value');
while($row = pg_fetch_array($result)) {
echo $santh=$row['DD'];
}