Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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:

The k.php file does not read the paragraph texts I wrote in my inkude tag
Posted
Comments
Richard MacCutchan 17-Aug-22 3:53am    
You need to add more detail, the question is not clear. You have three include statements, which one is the problem?
egemen taskol 21-Aug-22 2:43am    
yes

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