Answer the question
In order to leave comments, you need to log in
How to display the balance line from the database?
Hello everyone!) It is not possible to display the balance line from the database.
Here is the code:
<div class="head-menu">
<ul>
<li><a href="profile.php">Профиль</a> </li>
<li><a href="login/register.php">БаланÑ<?=$row['balance']?></a></li>
<li><a href="exit.php">Выйти</a></div></li>
<div class="clear"></div>
</ul>
</div>
ALTER TABLE `users` CHANGE `balance` `balance` INT(11) NOT NULL;
Answer the question
In order to leave comments, you need to log in
Where is the mysql query before your block?
Such a request does not select a balance, but changes the balance field to an int(11) type
And then nothing that you open with the tag <?=
Do not echo, since it is already in the php block.
Don't do a SELECT from the base.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question