我不知道我做错了什么......
我的代码是:
<?php
if ( isset($_GET['uredi'])) {
$id = $_GET['uredi'];
$sql = mysqli_query($link, "SELECT * FROM changelog");
$row = mysqli_fetch_array($sql);
}
?>
<div class="container main">
<div class="row">
<div class="page-header">
<h1>Changelog <small><a href="dodaj" title="dodaj"><div class="btn btn-danger btn-xs">Dodaj</div></a></small></h1>
</div>
<form role="form" action="includes/dodaj-changelog.php" method="post" accept-charset="utf-8">
<textarea name="vsebina"><?php echo $row['vsebina']; ?></textarea>
<input type="hidden" name="id" value="<?php echo $row['id']; ?>">
<button type="submit" style="margin-top: 20px" class="btn btn-primary">Dodaj</button>
</form>
</div>
</div>
它总是给我错误:注意:未定义的变量:第 19 行 C:\wamp\www\ocene\uredi.php 中的行调用堆栈#TimeMemoryFunctionLocation 10.0000142728{main}()..\uredi.php:0 ">
但是 $row 被定义...