Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
$sql = 'SELECT kresim,ad,yazar,yv,ft FROM kid ';

$qe = $conn->query($sql);

if ($qe->num_rows > 0) {

while ($a = mysqli_fetch_array($qe, MYSQLI_ASSOC)) {

@print('
');
echo "";
echo "

" . $a[" ad"] . "

";
echo "

" . $a[" yazar"] . "

";
echo "

" . $a[" yv"] . "

";
echo "

" . $a[" ft"] . "

";
echo ' sepete ekle';
}
}

What I have tried:

echo section is where the error occurred
Posted
Comments
Richard MacCutchan 11-Jun-22 3:40am    
"echo section is where the error occurred"
There is no reference to kresim in the code you have posted.

Looking more closely at your code I think the space in your field names is incorrect. Try:
echo "" . $a["yazar"] . "";
Member 15627495 11-Jun-22 12:36pm    
the index is identified by 'strings/literals',
when you call the slot with the space in, you call a wrong name, so the debug catch a 'undefined index'.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900