Jump to content

Leaderboard

Popular Content

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

  1. This fails $j = "{'admin': 1, 'moderator': 1}" ; $a = json_decode($j, 1); echo '<pre> a ' . print_r($a, 1) . '</pre>'; This works $j = '{"admin": 1, "moderator": 1}' ; $b = json_decode($j, 1); echo '<pre> b ' . print_r($b, 1) . '</pre>'; Note the quotes in the JSON string.
    2 points
  2. No worries, this is why the forum exists -- to help people who are working on things, and giving an honest effort, which you clearly are. Glad you are not giving up.
    1 point
  3. As @gizmola said, the first problem is missing style= second) You are using obsolete html markup 3) you have specified a couple of classes but not put them inside the class="w3-container" 4) Again inline style without the style= 5) You have broken up the style attributes with a couple of rogue quotes
    1 point
  4. Look at the stuff Barand highlighted in yellow. Here's the first one: <div class="div-table-row" 'text-align: right;'> So what is the problem here? Well you have a css class you are referencing, which is good. Then you have an inline style: 'text-align: right;' Really you should avoid using inline styles, and have your own style sheet you reference in your page, however, if you wanted to do this, the problem is that you are missing the attribute name and equal sign for the inline style definition. <div class="div-table-row" style="text-align: right;"> Also try not to mix your quoting style. For html, best practice is to use double quotes for all attributes. The 2nd problem he highlighted is the same as the first. You have a set of inline styles, but no style=".....".
    1 point
  5. Looking at the code you posted it looks you have decided to ignore the rules of syntax for inline style definitions and class specifications. Plus a bit of obsolete html markup thrown in for good measure
    1 point
  6. Unlikely you will get any help here without posting the errant code. Perhaps it is just me but your attitude may need changing as well. As for the error, make sure you have error reporting turned on and include the error in your post. error_reporting(E_ALL);
    1 point
  7. 1 point
  8. Post with portions of your problematic code using the code button. We don't allow people linking to archive files, as they could literally contain anything.
    1 point
  9. Agree 👍. Gotta use Double quotes around strings in Json. -> Spec Here. Scroll down to String. Embedded double quotes have to be escaped with a backslash.
    1 point
  10. Thanks to both of you. As i said, I didn't see this problem/error my self because I have seen me tired and blind on this. As we say in Norway: I didn't see the forest because of all the trees. Thanks...
    0 points
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.