Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/09/2021 in all areas

  1. The answer to that is most definitely We have absolutely no idea how your website works so we don't have the slightest chance of being able to look at that little bit of code you posted and give you useful answers for how to do things like query your database or add content to a webpage. Websites just aren't that simple. Who set up this site? Can you get them to do the work?
    1 point
  2. Does this work at all, ie, does the form show up? Curious to know which line is giving you the error? IE, line 345? If it is the first appearance of multi-query the message is saying that something is null. That is most likely the $mysqli variable. PS - I seem to recall that multiple query statements in places where one can do that kind of thing need a semi to separate the multiple statements. You are not doing that here.
    1 point
  3. If you want keys, you need to define them when you create the array. while($stmt -> fetch()){ $awards[$ay][$id] = ['an' => $an, 'aw' => $aw]; } Then you can use $winner['an'] / $winner['aw'] instead.
    1 point
  4. If there are multiple reocords for years then each array element for the year need to be an array of records while($stmt -> fetch()){ $awards[$ay][] = [$id, $an, $aw]; } or while($stmt -> fetch()){ $awards[$ay][$id] = [$an, $aw]; }
    1 point
  5. Absolutely Psycho. Thanks for proof reading me -- I edited the code in my post.
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • 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.