Jump to content

goodban

New Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by goodban

  1. I have a logbook that I created using php/mysql with the help of dreamweaver. Everything was going fine until I wanted to add replies to the logbook. I have tried everything I can, but I cannot get this "include" file to pull up the right data, or come up at all. This is what I'm currently trying to do: <?php require('replies.php?<?php echo $row_logbook_reverse_id['id']; ?>=id'); ?> I just don't know where I'm going wrong. I've tried to search for this on php.net but honestly, I don't know the proper term of what I'm actually trying to do.
  2. I actually figured it out. <?php echo date("Y-m-d", strtotime("-1 day", strtotime($row_logbook['timestamp'])));?> Now I'm just running into the issues with if there are no entries for the that date it sends to default 12/31/1969. I'm still very new at this and am trying to teach myself with the help of Dreamweaver.
  3. I'm having a hard time trying to figure out strtotime and adding and subtracting days. I have a digital logbook that I am trying to sort by day so when I log in I only see entries for that day, but I want to create links where I can flip through days. echo date("Y-m-d", strtotime($row_logbook['timestamp'])); Where can I put -1 day or +1 day? Any help would be appreciated. I've searched google endlessly and cannot figure it out.
×
×
  • 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.