Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. The best way is to perform the calculation straight in the query, as PFMaBiSmAd displayed. If you are going to do it from PHP (which is pointless if you're grabbing the dates from the DB) you can use something much simpler: floor((time() - strtotime($birthday))/31556926);
  2. So do I, sorry Ayon.
  3. Nope, still get a 404 :-\
  4. That's because sort returns a boolean and you're trying to implode on it.
  5. Same for me: Sorry, 'www.hadrstyledb.com' does not exist or is not available.
  6. What's the error?
  7. Chop Chop!
  8. K, nvm don't worry about it.
  9. It's the tab called [sOLVED] in the bottom right.
  10. YW, it was because $_GET['page'] wasn't even set so there was no value to even give $page and the switch didn't know what to do and threw an exception. Please mark as solved.
  11. $page = isset($_GET['page']) ? $_GET['page'] : "default";
  12. That is how you do it. What exactly happens? Have you echoed $page to see what's actually in it? Should it be $page=$_GET['show']; ? Simple tutorial
  13. I think it's a a problem with the value of $d, are there any special character or anything? You don't have to break in and out of PHP it will interpolate with just: ('$user_', '$x', etc... You should also be using mysq_real_escape_string() on all your values.
  14. Click on the link Ayon provided, it will tell you have to set up and configure the mail() function and there are examples for you to follow, please make an attempt.
  15. You're right, short tags should never be used... This should be the case with all versions of PHP.
  16. Or just use single quotes and PHP will still interpolate.
  17. Try changing: $html .= "Request ID : $request[reqid] ";
  18. You don't have any value for what's going to be echoed as the link text: Try: HELLO! This will show up but probably won't work because your code is so messed up and you didn't use code tags.
  19. Lol, good! I can't see well either...
  20. Put session_start() at the top of your page. If it doesn't validate you can always set a flag.
  21. simpli, please use code tags next time... thx
  22. Try; $sql = "SELECT * FROM product p WHERE p.ProductStatus='Active' AND DATE_SUB(curdate(), INTERVAL 3 MONTH)
  23. $Address4=$_POST['Address4']; ^--- Missing a ;
  24. DATE_SUB(curdate(), INTERVAL 3 MONTH);
×
×
  • 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.