Click here to Skip to main content
15,566,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an exam in 4 hours and cant figure out whats wrong with my syntax.

I am trying to make a simple table appear with my data from the database.

What I have tried:

   Nåværende topscorere  
    <div class="navbar">
       <ul class="hotbar">
         <li><a href="VSHovedside-fotball.html">Hjem</a></li>         <li><a href="VSBeste-gjennom-tidene.html">De beste gjennom tidene</a></li>         <li><a href="VSDB.php">Nåværende topscorere</a></li>         <li><a href="VSMeld-deg-på.html">Meld deg på</a></li>       </ul>
  mysqli_query(mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT); : mysqli_result|bool;

<table><tbody><tr><th>    ID
    </th><th>    Navn
    </th><th>    Lag
    </th><th>    Tidligere lag
    </th><th>    Mål denne sesongen
    </th><th>    Kamper denne sesongen
    </th><th>    Bilde
    </th><th colspan="3"></th></tr>  <tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>
Updated 7-Nov-22 3:12am
Richard Deeming 7-Nov-22 8:13am    
Most of your code seems to be missing. You only need to show us the query that's failing and the error message, not the entire page.
OriginalGriff 7-Nov-22 8:30am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

We would at the very least need the actual SQL query and the error message!

Use the "Improve question" widget to edit your question and provide better information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900