A
A
Alexander Konovalov2014-06-04 14:35:06
SQL
Alexander Konovalov, 2014-06-04 14:35:06

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>

And here is the line from the database:
ALTER TABLE `users` CHANGE `balance` `balance` INT(11) NOT NULL;

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stepan, 2014-06-04
@L3n1n

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

E
Eugene Obrezkov, 2014-06-04
@ghaiklor

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 question

Ask a Question

731 491 924 answers to any question