Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by chhorn

  1. Did you try anything yourself? Like https://duckduckgo.com/?q=php+qr+code+reader
  2. As said: you need a QR code READER (in php?).
  3. i don't get any logic in that so why is EH totally missing, EH3 2 is undefined but gets a price and EH3 gets a price even that it's an exeption? Makes no sense for me.
  4. what should "does [not] work" mean? i would recommend using foreach if you don't need a continious integer.
  5. For what data? Use SQLite in-memory to mock a databse.
  6. so you can interact with software that uses JSON as exchange format.
  7. Download PHPMailer, read the MySQLi Tutorial on www.php.net and start coding.
  8. chhorn


    You should learn Websockets.
  9. On the line before, just count them. count(open_paranthesis) === count(closing_paranthesis)
  10. The database wrapper is not part of php-core so you have to completely debug that or ask the developer if it's not you.
  11. <?php $json = '[{"foo": {"bar": 123}}]'; $array = json_decode($json, true); $threelevelsdeep = $array[0]['foo']['bar']; echo $threelevelsdeep;
  12. Doesn't matter. It is returned, you just don't look at it. Open the webdeveloper console and switch to the network tab.
  13. So whats the problem then? If he entered the data, you store it, you show it.
  14. yeah, try something then?
  15. So your statement is invalid, check for quotes. Also you are building an SQL injection vulnerability, so everybody can easily delete your database. Prepared Statements would solve both problems, just have a research for it.
  16. just another variant: $myarray = [ 'articles' => [ 'href' => 'http://admin.contenta.com/api/articles'], 'blocks' => [ 'href' => 'http://admin.contenta.com/api/blocks'], 'categories' => [ 'href' => 'http://admin.contenta.com/api/categories'] ]; print_r(array_combine(array_keys($myarray), array_column($myarray, 'href')));
  17. Why not just trying something first?
  18. Place the first code before the second, then use the function output for string concatanation https://www.php.net/manual/en/language.operators.string.php
  19. i would always recommend using var_dump() because it also shows info on null, boolean and empty string values. At least you can also use json_encode() for this, but it lacks on objects.
  • 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.