Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. If index.php is in your webroot, the link should be "/index.php"
  2. Sounds like that's a limitation of twitter's API.
  3. Edit: Psycho got the link before I could
  4. They are two different values tho. 1369612800 2013-05-27 1367193600 2013-04-29 <?php $time = strtotime("last Monday of May 2013"); echo $time.'<br>'; echo date('Y-m-d', $time); echo '<br>'; $time = strtotime("last Monday May 2013"); echo $time.'<br>'; echo date('Y-m-d', $time); ?> The of one is accurate.
  5. I just showed you it worked. The code I pasted is LITERALLY what I ran and got that output. If it works for you without the "of", then take out the "of". What is the issue?
  6. 1369612800 2013-05-27 <?php $time = strtotime("last Monday of May 2013"); echo $time.'<br>'; echo date('Y-m-d', $time); ?> How did you debug your string? what's print_r($_POST); show? How have you debugged the strtotime? Post the actual code.
  7. You either don't use the domain, or you set up the domain as a server variable.
  8. Your links need to be the full path. Either with the domain or just from the root folder.
  9. I completely glossed over the fact that it was an ALTER TABLE query. Good job David.
  10. Show your code and error.
  11. You have to put :field in the query where you want the parameter replaced.
  12. jQuery has a great AJAX utility.
  13. Using AJAX. PHP runs on the server, is sent to the client, and displayed in the client (browser). Or better yet, just plain javascript.
  14. You have to look up what the default value is in the documentation, then set it to that. For example, the default value for text-decoration for an a is underline.
  15. http://forums.phpfreaks.com/topic/273800-create-proper-urls-for-posts/#entry1409023 Please read the answers you're given and stick to one thread.
  16. Instead of 'd' use 't'. http://www.php.net/manual/en/function.date.php And then add only 28 days, not 1 month.
  17. You need to put your email address as a string, and assign it to the variable. Go read the PHP manual.
  18. Your problem has absolutely nothing to do with your text editor. Are you trying to learn PHP, or just change the form and then not learn more PHP?
  19. See, that's a lot more useful. Could have saved 5 or so posts. $_POST is an array. When you do $_POST['field_name'] you are looking for the value of the $_POST array at the field_name key. $owner_email = $_POST["sebbieharrisonevans@gmail.com"]; is looking for a posted field with the name of your email address. If you had error reporting on and set to show notices, you'd see this is wrong.
  20. The opening tag for PHP is <?php. Not: <? php Your server does not have short tags on, so it's reading it as html.
  21. The code where you put in your email. You should always post your latest code when you want help with it. Code that's two iterations old...wastes our time.
×
×
  • 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.