授業でPHPの課題が出たのですが
14行目の???のところに何を入力すればよいかわかりません
教えていただけないでしょうか?
ソースコードに間違いがあった場合そこの指摘もお願いします。
<!docutype html>
<html>
<head>
<meta charset="utf-8">
<title>データベースの操作</title>
</head>
<body>
1.販売先表の表示<br>
<?php
$conn=mysqli_connect('localhost','root','パス') or exit('DB接続失敗');
mysqli_db_select('$conn','DB名') or exit("DBがありません");
$sql="select * from テーブル名;";
$result=mysql_query($conn,$sql)or exit("問い合わせに失敗しました");
if(mysqli_num_row($result)==????) exit("行は存在しません");
else{
echo "<table>\n
<tr><th>販売先コード</th>\n
<th>商品コード</th>\n
<th>販売先</th>\n
<th>販売先住所</th>\n
<th>販売先電話番号</th>\n
<th>販売先FAX</th>\n
<th>販売先メルアド</th>\n
<th>役職</th>\n
<th>担当者</th><tr>\n";
while($row=mysqli_fetch_array($result)){
echo "<tr>\n
<td>{$row['saleDestinationId']}</td>\n
<td>{$row['commodityid']}</td>\n
<td>{$row['saleDestinationName']}</td>\n
<td>{$row['saleDestinationAddress']}</td>\n
<td>{$row['saleDestinationTel']}</td>\n
<td>{$row['saleDestinationFax']}</td>\n
<td>{$row['saleDestinationMail']}</td>\n
<td>{$row['saleDestinationPosition']}</td>\n
<td>{$row['saleDestinationResponsible']}</td>\n
</tr>";
}
echo"</table>\n";
?>
</body>
</html>
こちらがデータベースのソースコードになります
saleDestinationId varchar(10) not null primary key,
commondityId varchar(10) not null,
saleDestinationName varchar(100) not null,
saleDestinationAddress varchar(200) not null,
saleDestinationTel varchar(15) not null,
saleDestinationMail varchar(50),
saleDestinationPosition varchar(20),
saleDestinationResponsible varchar(30)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。