egemen Posted August 16, 2022 Share Posted August 16, 2022 Php not reading text input See more: PHP Expand ▼ Copy Code index.php switch ($_GET["page"]) { case 'anasayfa': include("k.php"); break; default: include_once("k.php"); } k.php include "baglan.php"; echo '<div class="fd">'; if (isset($_POST["ara"])) { } else { $sql = 'SELECT kimg,ad,yazar,yv,ft,id FROM kid '; $qe = $conn->query($sql); if ($qe->num_rows) { } else { echo "başarısız"; } if (mysqli_num_rows($qe)) { while ($a = mysqli_fetch_array($qe, MYSQLI_ASSOC)) { if (isset($a) && isset($a["kimg"]) && isset($a["yazar"])) { # code... @print(' <div class="cvv">'); echo ' <a href="kitab= ' . $a["id"] . '>'; echo "<img src= 'img/logo.png' class='img'></img>" What I have tried: Copy Code The k.php file does not read the paragraph texts I wrote in my inkude tag Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/ Share on other sites More sharing options...
ginerjm Posted August 16, 2022 Share Posted August 16, 2022 Ok - reformatting your code to make it READABLE I see: //index.php switch ($_GET["page"]) { case 'anasayfa': include("k.php"); break; default: include_once("k.php"); } //k.php include "baglan.php"; echo '<div class="fd">'; if (isset($_POST["ara"])) { } else { $sql = 'SELECT kimg,ad,yazar,yv,ft,id FROM kid '; $qe = $conn->query($sql); if ($qe->num_rows) { } else { echo "başarısız"; } if (mysqli_num_rows($qe)) { while ($a = mysqli_fetch_array($qe, MYSQLI_ASSOC)) { if (isset($a) && isset($a["kimg"]) && isset($a["yazar"])) { # code... @print(' <div class="cvv">'); echo ' <a href="kitab= ' . $a["id"] . '>'; echo "<img src= 'img/logo.png' class='img'></img>" which makes no sense at all. Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599470 Share on other sites More sharing options...
egemen Posted August 16, 2022 Author Share Posted August 16, 2022 Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599471 Share on other sites More sharing options...
ginerjm Posted August 16, 2022 Share Posted August 16, 2022 And just what is this last posting of yours?? We tend to post code not teensy tiny images. Do you want help? Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599474 Share on other sites More sharing options...
egemen Posted September 1, 2022 Author Share Posted September 1, 2022 Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599979 Share on other sites More sharing options...
ginerjm Posted September 1, 2022 Share Posted September 1, 2022 HOw about posting some code that we can read and play with should we need to? Images are not really appreciated. 1 Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599980 Share on other sites More sharing options...
egemen Posted September 1, 2022 Author Share Posted September 1, 2022 <a href="kitab= [value-1]><img src= 'img/logo.png' class='img'></img> </a><p class='p'>yazar ad:[value-3]</p><p class='p'>[value-4]</p><p class='p'>[value-5]</p><p class='p'>[value-6]</p>hhkhlk</div> <div class=" cvv"=""> </a> it gives the above, it should give it as output roughly <div class="cvv"> <a href="book= ' . $a["id"] . '> echo "<img src= 'img/logo.png' class='img'></img> </a>"; <p class='p'>author name:" . $a["name"] . </p> echo "<p class='p'>" . $a["author"] . "</p>"; echo "<p class='p'>" . $a["yv"] . "</p>"; echo "<p class='p'>" . $a["ft"] . "</p>"; Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599982 Share on other sites More sharing options...
egemen Posted September 1, 2022 Author Share Posted September 1, 2022 5 minutes ago, ginerjm said: İhtiyacımız olduğunda okuyabileceğimiz ve oynayabileceğimiz bir kod göndermeye ne dersiniz? Görüntüler gerçekten takdir edilmiyor. Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599983 Share on other sites More sharing options...
ginerjm Posted September 1, 2022 Share Posted September 1, 2022 I have no idea what your question is. I do see some html code that is very difficult to interpret. 1 Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599984 Share on other sites More sharing options...
egemen Posted September 1, 2022 Author Share Posted September 1, 2022 (edited) all code writes inside a tag thank you for helping Edited September 1, 2022 by egemen Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599985 Share on other sites More sharing options...
ginerjm Posted September 1, 2022 Share Posted September 1, 2022 2 minutes ago, egemen said: all code writes inside a tag What does this mean? I really don't know what you are trying to tell me/us. 1 Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599986 Share on other sites More sharing options...
egemen Posted September 2, 2022 Author Share Posted September 2, 2022 https://drive.google.com/drive/folders/1YmJ5phFR04IxolieAGEBDMv2vFrq697d?usp=sharing Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599991 Share on other sites More sharing options...
ginerjm Posted September 2, 2022 Share Posted September 2, 2022 Nope Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599995 Share on other sites More sharing options...
cyberRobot Posted September 2, 2022 Share Posted September 2, 2022 Like ginerjm, I'm not sure I understand the issue / question. However, looking through the code and screenshots, I see that the href attribute in your anchor tag is missing a quote. Perhaps changing this echo ' <a href="kitab= ' . $a["id"] . '>'; to this echo ' <a href="kitab= ' . $a["id"] . '">'; will fix the issue. Note the double quote (") before the greater than symbol (>) at the end. Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1599999 Share on other sites More sharing options...
ginerjm Posted September 2, 2022 Share Posted September 2, 2022 I noticed that too but thought he was actually trying to put all of the code there in as the href attbribute. As I said then it was some pretty messy html. Quote Link to comment https://forums.phpfreaks.com/topic/315191-php-not-reading-text-input-see-more-php-expand-%E2%96%BC/#findComment-1600004 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.