Jump to content

revraz

Members
  • Posts

    6,911
  • Joined

  • Last visited

    Never

Everything posted by revraz

  1. A good editor would show you that
  2. Send the unix timestamp and convert it.
  3. I would say start cutting your code up into sections, echo some spots out and see how far you get.
  4. ini_set('display_errors',1);
  5. Not sure if it's just me or IE, but I can't see any of the code in that box.
  6. That is because you are running your SQL before you get to the form part. You should only enter data when Submit is sent.
  7. Give it a run and see what errors develop.
  8. <? is referred to as short tags. If a server does not have short tags enabled in their php.ini file, your code will not work. <?php would be preferred. In regards to sessions, I would recommend doing a quick session tutorial on the web, just do a google search there are a ton out there.
  9. Just mark it as solved and we promise not to read it again.
  10. Use mysql_error after your query to check for errors Echo you sql string to insure it is what it's supposed to be
  11. My advice, be consisant with your code. Even small stuff like <? and <?php I cek_login.php, you are not setting your sessions correctly. In sukses.php, you are not referencing the same session name you are trying to use.
  12. Move your 2nd ending table </table> out of your loop. And your first one.
  13. You have your tables starting at the same place.
  14. One way that will work except where your visitors have meta redirects disabled would be to set up two web pages where the first consists of nothing except an immediate redirect to the second (plus a link for those with meta redirects disabled). Pressing the back button on the second page will go back to the first page which will immediately redirect back to the second page.
  15. Marking activity time is fairly simple. Each time they access any of your pages, just have a time stamp entered into the database. You can check for activity with a cron job every 5 mins, compare it to see if a certain time frame has elapsed, if so, change the field to logged out.
  16. Problem is, you don't have a lot of control over when the session dies. The GC is not guarenteed to clean up the old session everytime it runs. The best way to handle this is mark their last activity time, after a time period, this considers them logged out.
  17. You can run a cron job and set a date/time in the table, the cron job then checks this every so often (5 mins?) and if the time limit has passed, set them to logged off in the table.
  18. What do you want to do with the file attachment?
  19. So that is all fixed up, repost your new code and ask your new question.
  20. $reg = "1-2-3"; $directory = strtolower(str_replace("-","",$reg)); echo $directory;
  21. http://php.net/manual/en/function.str-replace.php
  22. You are doing it twice and the 2nd time it blanks it out.
  23. 'x+' Create and open for reading and writing; otherwise it has the same behavior as 'x'. You can't create what already exists.
  24. That is a good sign.. post the error? Did you remove the mysql_errors after them?
  25. Not sure why you are using mysql_error after fopen and fwrite. But remove the error suppression @ before fopen and fwrite so you can actually get an error report. Also, you have a mysql_error after a include?
×
×
  • 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.