pdo - 如何使用 php 变量读取 sqlite3 上的数据?
问题描述
$result = $vt->prepare('SELECT * FROM streamdetails WHERE idFile ='.$idFile.' AND iStreamType =0');
$result->execute();
foreach($result as $row)
echo "Çözünürlük: ".$row['iVideoWidth'] . " x " .$row['iVideoHeight'] . "<br>";
}
怎么了?
$idFile 变量类型是文本,但 idFile 在 streamdetails 上是整数。
解决方案
推荐阅读
- sql - 为什么我们的应用程序需要刷新数据库视图?
- ruby - pg gem 安装在 Redhat 中出现错误
- javascript - RXJS 在嵌套数组中调用 api 并将结果合并到数组中
- excel - 将日期的月份和年份与日期行匹配
- python - 在循环中堆叠 numpy 数组的最快方法是什么?
- jquery - 必须选中组中至少 3 个复选框
- windows - 如何在后台启动批处理文件中运行 ssh 反向隧道?
- python - Python map 和 lambda 组合给出错误
- c++ - 使用 AVX 的全连接层(点积)
- python - 如何将 DF 中的字段解析为月、日、年、小时和工作日?