1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to display data from a database table?

Discussion in 'PHP' started by Divvy, Jul 6, 2021.

  1. #1
    Hello guys,

    I have a wordpress site with the posts like this:https://monosnap.com/file/GndtN3hVojzMMITo5NT3exS7iXypvv

    I have 250 posts like this and I need to update all of them manually.
    SEMrush
    Can someone help me displaying automatically using the database?https://monosnap.com/file/c5WJKvYuZNHWn8y4dTGnQYOsYrSIdp

    I need to display a top 10 like the image above using the highest "level_boost" with the sum of the "health_boost" , "damage_boost" and "speed_boost".

    Example:
    User - nível 26 (0/0/0)

    Database:
    user_id - level_boost (health_boost/damage_boost /speed_boost)

    Notes:- dino_id is the post_id- level 25 (5/5/5) is higher than level 30 (0/0/0) because has 40 instead of 30.

    Thank you in advance :)
     
    Divvy, Jul 6, 2021 IP
    SEMrush
  2. sarahk

    sarahk iTamer Staff

    Messages:
    27,234
    Likes Received:
    4,182
    Best Answers:
    118
    Trophy Points:
    665
    #2
    So you have a database with tables capturing the status of players and you need to show the players with the greatest increase?
    Are you wanting to edit the post or create a new one?
    It looks like tabular data that should be displayed in a table!
     
    sarahk, Jul 6, 2021 IP