我的单选按钮有问题,我可以编辑和插入,但它没有显示任何内容。我做错了什么?预先感谢您的帮助
单选按钮
<input type="radio" name="visible" value="0"<?php
if ($id['visible'] == 0) { echo " checked"; }
?> /> {no}
<input type="radio" name="visible" value="1"<?php
if ($id['visible'] == 1) { echo " checked"; }
?> /> {yes}
ID
enter if(isset($_POST['id'])){
$id=$_POST['id'];
}else{
$id=$_GET['id'];
//echo $id;
} here
@$query = "SELECT * FROM photographs WHERE id = '$id' ";
//pokazuje co zostalo zmienione
echo $query;
$result = mysqli_query($connection, $query);
if (!$result) {
die("zapytanie sie nie powiodlo");
}
$row = mysqli_fetch_array($result);
?>