Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要从最低 <= 50 的数据库银行中进行选择,然后显示银行名称及其关税。我这样做了,但它不起作用。
$result = mysql_query("SELECT * FROM list1 WHERE minimum <= 50]"); while($row = mysql_fetch_array($result)) { echo $row['bank_name'] . " - " . $row['Tarif']; echo "<br />"; }
$result = mysql_query("SELECT * FROM list1 WHERE minimum <= 50]"); ^---typo
如果您有以下构造,您会收到错误消息:
$result = mysql_query(yada yada) or die(mysql_error()); ^^^^^^^^^^^^^^^^^^^^^^