Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. lol.. posts in this section don't count towards your count..
  2. probably should have specified that... heh
  3. I was going to say that! HOW DARE YOU TAKE THE WORDS OUT OF MY MOUTH!! thwarted.. ha!
  4. it will send it to the error log.. which is where errors should go unless you would like to send them to another file.. as long as the user cannot see any errors that occur on the server..
  5. on a live server you will not want to use the die function or exit function to display the errors that you would normally want to see during the debugging process.. i recomend using trigger_error to send custom messages to the error.log
  6. is this the relevant error that you are receiving?
  7. your host should provide a php.ini file that you can make changes to.. only other reason that I can think of as to why the error(s) is still showing is that you have the error in a die() or exit() function.. ?
  8. sounds like you have display_errors set to on..? on a live server, you will want this setting off... and can even control where the error messages are sent so only you have access to them..
  9. pfpf = PHP Freaks...
  10. i write an if condition how you normally would..
  11. welcome to phpf.. lol
  12. your concatentation is giving me a headache trying to decipher.. use this mysql_query("$cuery") or die(mysql_error());
  13. YOU TOLD IT TO DELETE ANYTHING WITHIN 60 SECONDS...
  14. looks right to me.. should delete anything older than 2 days in your query..
  15. no errors received? are you using mysql_error to debug all of your queries?
  16. without even looking at your code I can tell you that that is what a form is supposed to do.. does the data get added into your database?
  17. alright lets work on the logic.. $time_count = 2*24*60*60; $match_time = date('Y-m-d h:i:s a', time() + $time_count); $sql="SELECT `id`, `image`,`time` FROM `tbl` WHERE `time` > '$match_time'"; print $sql; $result = mysql_query($sql) or die(mysql_error()); if(mysql_num_rows($result > 0)){ while($row = mysql_fetch_array($result)){ $id = $row['id']; $sql1="DELETE FROM tbl WHERE id = '$id'"; $result1= mysql_query($sql1) or die(mysql_error()); }
  18. maybe I am misunderstanding you.. you want to select a row that is in between the post time and 2 days after the post time..?
  19. $time_count = 2*24*60*60; $match_time = date('Y-m-d h:i:s', time() + $time_count); $sql="SELECT `id`, `image`,`time` FROM `tbl` WHERE `time` > '".$match_time."'";
  20. and lol at PHPSensei pic
  21. to be honest, I myself would prefer the PHP method that I helped you with originally for this..
  22. my favorite language is english..
  23. yes except for the fact that you want to interval by 2 days and not 30 right..? or was that just for testing purposes..?
  24. AyKay47

    PHP script

    place these 2 lines on the top of your php.. ini_set("error_reporting",E_ALL); ini_set("display_errors","ON");
×
×
  • 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.