can't understand this parsing issue
This question already has an answer here:
You didn't concatenate inside the echo
...change the function calls and echos inside these lines:
<a href="listaigraca.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-users fa-2x"></i></div><div class="texttipka">LISTA IGRACA <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">' <?php echo GetPlayersCount($con); ?> '</span></div></div></a>
<a href="oglasi.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-newspaper-o fa-2x"></i></div><div class="texttipka">LISTA OGLASA <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">'<?php echo GetAdCount($con); ; ?>'</span></div></div></a>
<a href="alltickets.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-question-circle fa-2x"></i></div><div class="texttipka">SUPPORT TIKETI <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">'<?php echo GetTicketCount($con); ;?>'</span></div></div></a>
to
<a href="listaigraca.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-users fa-2x"></i></div><div class="texttipka">LISTA IGRACA <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">' . GetPlayersCount($con) . '</span></div></div></a>
<a href="oglasi.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-newspaper-o fa-2x"></i></div><div class="texttipka">LISTA OGLASA <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">' . GetAdCount($con) . '</span></div></div></a>
<a href="alltickets.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-question-circle fa-2x"></i></div><div class="texttipka">SUPPORT TIKETI <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">' . GetTicketCount($con) . '</span></div></div></a>
Don't nest <?php echo $x ?>
inside an already existing <?php ?>
The problem is that you have <?php ... ?>
statements inside of a string, which is already inside of a <?php ... ?>
block. If you have a large chunk of HTML to send, instead of echoing it, you can just close the PHP tag, like this:
<?php
session_start();
include('functions.php');
$username = $_SESSION['login_admin'];
$username=mysqli_real_escape_string($con, $username);
?>
<div class="cp_text">
<h3>ADMIN CONTROL PANEL</h3>
</div>
<div class="izbornik">
<a href="pocetna.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-home fa-2x"></i></div><div class="texttipka">HOME</div></div></a>
<a href="addnews.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-plus-square-o fa-2x"></i></div><div class="texttipka">DODAJ VEST</div></div></a>
<a href="listaigraca.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-users fa-2x"></i></div><div class="texttipka">LISTA IGRACA <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">' <?php echo GetPlayersCount($con); ?> '</span></div></div></a>
<a href="oglasi.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-newspaper-o fa-2x"></i></div><div class="texttipka">LISTA OGLASA <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">'<?php echo GetAdCount($con); ; ?>'</span></div></div></a>
<a href="alltickets.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-question-circle fa-2x"></i></div><div class="texttipka">SUPPORT TIKETI <span class="_51lp _5ugg _5ugh _3-99" id="u_0_1a">'<?php echo GetTicketCount($con); ;?>'</span></div></div></a>
<a href="stats.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-bookmark fa-2x"></i></div><div class="texttipka">ZAHTEVI ZA UNBAN</div></div></a>
<a href="stats.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-credit-card fa-2x"></i></div><div class="texttipka">BILLING LISTA</div></div></a>
<a href="stats.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-adn fa-2x"></i></div><div class="texttipka">DODAJ UREDNIKA</div></div></a>
<a href="pocetna.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-forumbee fa-2x"></i></div><div class="texttipka">FORUM</div></div></a>
<a href="logout.php"><div class="tipka"><div class="slika"><i style="text-align: center; width: 25px;" class="fa fa-close fa-2x"></i></div><div class="texttipka">LOGOUT</div></div></a>
</div>
链接地址: http://www.djcxy.com/p/69674.html
上一篇: 警告:include()[function.include]:文件名不能为空PHP
下一篇: 无法理解这个分析问题