Jump to content
Max45

How to add a bootstrap class to php echo in php in mysql query?

Recommended Posts

I am trying to add a bootstrap class to php echo in mysql query but it doesn't work Here the code that I using

$result = $conn->query($sql); echo "";
echo " New Users "; echo "
"; echo "";

Any ides ?

Share this post


Link to post
Share on other sites

Puzzled  - what it is it supposed to do?

It doesn't reference anything from the query nor does it reference any classes.

Share this post


Link to post
Share on other sites
Posted (edited)
46 minutes ago, Barand said:

Puzzled  - what it is it supposed to do?

It doesn't reference anything from the query nor does it reference any classes.

I am Trying to put my php echo into bootstrap div like this

$result = $conn->query($sql);

<div class="alert-success">

echo "

<tr> <th>New Users</th> </tr>

";

echo "<br />"

</div>;

Edited by Max45

Share this post


Link to post
Share on other sites

You should spend some time learning about... well, the basics. Then you should be able to see what's wrong with what you're trying and know what the correct syntax is.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.