Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. If you stored the month as a number then you would be able to order it by month. MySQL doesn't know what order you think is correct for your strings. You should store dates as numbers and only convert them to strings when you're displaying them to the user. How to turn a number month into a text month: // This is somewhere very early on in your code// The first slot is empty because there is no month 0 (zero)$months = array('Empty', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); // Whenever you need to print the month name $m = $row['month'];echo $months[$m];
  2. Ask your questions on the forums.

  3. As long as people keep making them the list will keep getting longer. Here's a partial list of PHP content management systems: http://en.wikipedia.org/wiki/Comparison_of_content_management_systems#PHP No doubt there are hundreds more that are obscure.
  4. Google creates them automatically if your site is structures properly. Here's Google's explanation: https://support.google.com/webmasters/answer/47334?hl=en
  5. No, I generally don't work with anything besides bare PHP.
  6. Information for language syntax and features are in the tutorial http://www.w3schools.com/js/default.asp while object properties and methods are in the reference http://www.w3schools.com/jsref/ Javascript doesn't have any keywords called "let" or "yield" so you wouldn't find them in any manual.
  7. That's strange. Anyways, setting the width in ems rather than pixels would certainly ensure that the page is always the same size relative to the text.
  8. Just by giving the elements a fixed width that will happen. width: 980px min-width also works.
  9. Fluid means it changes size depending on the window size. A grid is just a layout based on rows and columns. A fluid grid would be rows and columns that expand and contract to match the window size. Responsive means a website that works well for everybody regardless of what they're using to view it.
  10. I've seen it in multiple websites, I agree it's annoying.
  11. Well, I checked their usage policy, you should always do that when looking for resources online. http://www.freesmileys.org/free-smileys-usage.php Personally, I would have recommended you to use Google and look for sites.
  12. Ingolme

    conditionals

    endif; isn't necessary and will cause errors if you use the ordinary if/else syntax.
  13. Ingolme

    conditionals

    If you're using a particular syntax, it's necessary: if ( condition ): // Multiple // lines // of // codeendif;
  14. Use the characters < and >, like this: <p>The <p> tag is used to make paragraphs.</p>
  15. It sounds like the content inside the frame was trying to read or write something in your website's DOM. Are you using the code youtube gave you or did you try making your own?
  16. In the first case, it will load file.php from the directory that this file is in. In the second case, it will load file.php from the directory of the file that included this one. Here's an example: index.php <?php include 'files/a.php'; ?> files/a.php <?phpinclude 'b.php';include dirname(__FILE__) . '/b.php';?> b.php <?php echo 'This file was loaded from the root directory. '; ?> files/b.php <?php echo 'This file was loaded from the files directory. '; ?> If you run index.php it will output:
  17. I believe this works: ?var[]=1&var[]=2&var[]=3
  18. As far as I know, that's not PHP syntax and, since it's in a comment, it won't do anything at all. I think it's a convention for developers to know what's in the code.
  19. It's not an assignment, that was a shorthand syntax for <?php echo $ajax->MethodCall(); ?> It's not recommended, and is being deprecated in PHP 6. If your PHP server is programmed with that syntax disabled it will show an error message.
  20. In the example you posted, the image was already blurred and then applied as a background image of the box on the left. No part of the HTML document is blurring it. Open your image in photoshop and blur it and then save the blurred image with a different filename.
  21. Ingolme

    Image Link Problem

    Images are inline, so they behave like text. A line of text leaves a small gap below it to fit letters like g, y and j which have parts that go below the baseline. My preferred solution is to set the vertical-align of the image's container to "middle" forcing the text to align itself to the middle of other inline elements, such as images, rather than putting their baseline at the baseline of the image and leaving that gap. Yes, that would remove the symptoms, but not solve the actual problem.
  22. I don't know which is line 40, but I'd look at what value $result has right before encoding it to JSON.
  23. The button is going to behave that way in Internet Explorer 7. There's no way you can change that. One solution could be to style another element to look like a button.
  24. Don't worry about Internet Explorer 7. It's old and is simply built to treat buttons that way.
  25. Unfortunately, I can't tell what's causing the program to take so long. I don't think there's an infinite loop so perhaps the imap connection is taking too long to respond. Try removing some of the lines of code until this error stops occurring.
×
×
  • Create New...