Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/24/2023 in all areas

  1. Did you look at the code I posted? You also have a database involved apparently and yet there is no code you've shown that does anything with the database. If you're reading data from the database somewhere we don't know what that code looks like. It won't magically create session variables. Dont design something like "salecheck" in a database as a varchar(255) if all you want is a true/false yes/no. Assuming this is mysql, then use a tinyint defaulting to 0. Then when you want that to indicate true, you set it to 1.
    1 point
  2. Hi all i've been helped in the discord quite a lot, they were very patient with me even tho i was a frantic and anxious due to time constraints and mental health. This post to express my appreciation As a certain AI would say ' Dear all, I just wanted to take a moment to express my sincere gratitude to everyone in this PHP forum. Your willingness to help and support has been invaluable to me as I've worked on my project and learned about this wonderful programming language. The insights and advice that you've shared have enabled me to make significant progress and overcome some tricky challenges. Moreover, your enthusiasm and passion for PHP have been infectious and have helped me to develop a real love for the language myself. So once again, thank you all so much for your kindness, generosity, and expertise. I look forward to continuing to learn and grow with you all in the future. Best regards,'
    1 point
  3. Thank you for your explanation and delicacy. I now have more knowledge. If i could use a nodding my head, while holding 2 thumbs up in an upward proud position, then i would use such an emoji here and now.
    1 point
  4. Date inputs have a valueAsDate property you can use to get a pre-made Date object. The date object you get will be set to the midnight of the selected date UTC. When you convert that to string, it will be in whatever the browser's local timezone is, which is probably why you're seeing the day before. https://jsfiddle.net/vzhqxdsp/
    1 point
  5. Not my experience. Te value output in the "target" div is the new data value <!DOCTYPE html> <html lang="en"> <head> <title>sample</title> <meta charset="utf-8"> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script type='text/javascript'> $().ready(function() { $("#date1").change(function() { let d = $(this).val() let dobj = new Date(d) $("#target").html(dobj.toLocaleString()) }) }) </script> </head> <body> <h3>Date:</h3> <input type='date' id='date1' value='2023-02-24'> <h3>Changed date:</h3> <div id='target'> </div> </body> </html>
    1 point
  6. If you must do stupid things such as storing numbers so that they can't be used as numbers, then you need to convert it back to a number $num_week = intval(ltrim($week, 'w0'));
    1 point
  7. Right: since the animation is based on progress (0-100%) instead of time, what you have to do is (1) increase the animation duration to include the amount of time when it isn't doing anything, then (2) figure out what percentage 2-3 seconds into the animation is and use that in the keyframes. It's not the cleanest solution possible - that would be literally making it not animate during that initial pause - but it is easy, and with an interstitial page like this, no one's going to notice.
    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.