1
我有具有郵政編碼字段(文本)和校場(選擇)和我所試圖做的就是填充選擇字段從數據庫學校的一種形式:填充列表
<?php
$conn = mysqli_connect("localhost", "twa312", "dam6av9a");
mysqli_select_db(twa312, $conn)
or die ('Database not found ' . mysqli_error());
</form>
所以你的意思是理論上現在上述編輯應該工作? – AJJ
對不起,如果你設置你的$ sql =上面的查詢,它應該工作,只要我正確理解你的數據庫結構。所以: –
$ sql =「SELECT school_info.name AS name,local_schools.postcode AS postcode FROM school_info INNER JOIN local_schools ON local_schools.schoolID = school_info.schoolID」;而不是在$ rs = mysqli –