Bilinmeyen hata Undefined index: hattında 7 / var / www / vhosts / semanticnotion.com / httpdocs / balık / allmycatch.php içinde catch_id

0 Cevap

Ben mysql veri almak duyuyorum. Web tarayıcısı mükemmel çalışıyor ama benim terminal url kontrol ederken bana aşağıdaki hatayı veriyor.

Undefined index:  catch_id in /var/www/vhosts/semanticnotion.com/httpdocs/fish/allmycatch.php on line 7

Ayrıca bu komutu kullanarak http://semanticnotion.com/fish/allmycatch.php?ud_id=123456789&catch_id=8 tarayıcınızda yanı sıra terminalinde benim URL'yi kontrol edebilirsiniz

curl http://semanticnotion.com/fish/allmycatch.php?ud_id=123456789&catch_id=8

and you will see the error message in terminal my code is below

$ud_id=$_GET['ud_id'];
$catch_id=$_GET['catch_id'];
$query="SELECT catch_id,catch_name,catch_details,longitude,latitude,time,image
FROM user u
LEFT JOIN mycatch m ON u.user_id = m.user_id
WHERE u.ud_id ='$ud_id' AND m.catch_id >'$catch_id'";
$result1 = mysql_query($query);
//while ($table = mysql_fetch_array($result1, MYSQL_ASSOC)){
while ($table = mysql_fetch_assoc($result1)){

0 Cevap