Jump to content
#StayAtHome ×

chhorn

Members
  • Content Count

    93
  • Joined

  • Last visited

  • Days Won

    2

chhorn last won the day on April 29 2019

chhorn had the most liked content!

Community Reputation

8 Neutral

About chhorn

  • Rank
    Regular Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Looks like you just have to skip some parts var_dump(new DateTime('Sun, Feb 9 3:00 PM')); /** object(DateTime)#1 (3) { ["date"]=> string(26) "2020-02-09 15:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } then modify() and format().
  2. Or SELECT DATE(timestamp) = CURDATE() -- true or false FROM mytable WHERE whatever
  3. location.href = 'foo.php?data='+json.html var_dump($_GET['data']); maybe you need to escape that somehow. Or use AJAX.
  4. so if you want to look at some variable, you have to find it first. the variable is "data", and i only see the code you posted, so you hit ctrl+f on this page and type in "data" without the quotes, the only place you find this combination of charaters is within this code }).done(function(data){ form_status.find('.form-status-content').html('<p class="text-success">Thank you for contact us. As early as possible we will contact you</p>').delay(3000).fadeOut(); }); and the variable is provided as a parameter into a function. so you go into this function and place the code i posted there. and hit F12 in your browser, go to console, befor making that request.
  5. you could have a look at what the server gives you back for that ajax request with console.log(data);
  6. coming from MySQL in the past, i'm working with PHP+Postgres nearly exclusive for the last 5 years or so. main reason is standards compatibility, so less surprises and less wasted time with debugging, but performance and built in features are also a cause, GIS capability is great.
  7. that code imsafe.zip is nowhere mentioned on this thread.
  8. then your query is invalid, enable error reporting $pdo = new PDO('mysql:host=localhost;dbname=someTable', 'username', 'password', array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION ));
  9. If you don't know what to achieve, how should we? did you try to explode that string? is that the result you wanted? split the string up by what, with what result?
  10. I bet you need the avatar more often, so a new table would involve a join or at least a separat query every time. so if your users table does not seem to be flooded with columns anyway, or the user can store multiple avatars, maybe for historical reasons, i would stick on two columns within the users table for performance and maintainability - you still can simply let the column out on queries that don't need the data.
  11. Best way is tu query the APIs of the platforms if available.
  12. I bet the mailer won't care about any file extension, just use the one you expect it to be when the client opens the mail, at least then it would be a file anyway.
  13. First you have to find a source with ipv6 adressed countries, then you have to rewrite your script completely.
×
×
  • 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.