Jump to content

Ingolme

Moderator
  • Posts

    14,897
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by Ingolme

  1. Setting margin instead of padding to position the link will prevent that from happening.
  2. Cursive isn't a proper value for font-style: http://www.w3schools.com/cssref/pr_font_font-style.asp1800 isn't a valid value for font-weight. Only values from 100 to 900 are allowed.Most browsers don't support varying values of font.weight, so 200 is equal to normal font-weight.
  3. What's wrong with retrieving the data from the $_POST or $_GET array?
  4. Rather than last_logged_in I'd have a last_activity field. Anytime the user loads a page this timestamp is updated. To find out which users are online, check the difference between now and that date. $now = time(); SELECT username FROM users WHERE ($now - last_activity) < 900 900 means 15 minutes, 900 seconds.
  5. I think that's probably the comma in the WHERE clause. That should be an AND. And the "and" after SELECT should actually be a comma.
  6. Anything that you can see in the source code sent to the browser is output. All HTML and text, and anything that isn't PHP logic.
  7. The problem with your approach is that subtracting is going to give wrong results. If the current month is 0 and the previous month is 11, it's going to tell you that -11 months have passed. If the current hour is 3 and the past time was 20 then it's going to tell you that -17 hours have passed. The same with minutes, seconds, milliseconds and all other units. Simply subtracting the units of time separately is going to result in really inaccurate values.
  8. Ingolme

    Redirections

    This error usually shows up if you have a PHP script sending a location header to itself.
  9. Ingolme

    MAILTO

    It can't be done with HTML. You need a server-side script to do the sending. It can be PHP or some other language.
  10. That's a more complicated issue, normally counters don't show more than days.
  11. This tends to happen a lot. You really should offer a payment for the work that is done rather than from a potential success. Most web developers charge by hour of work.
  12. If there's a feature that a browser doesn't have, test for that particular feature rather than for the browser.
  13. Look at the $_SERVER['HTTP_USER_AGENT'] and try to figure out which one Chrome uses. The change all the time and the user has control over what is sent or whether it is sent.
  14. You should save the start time as a unix timestamp (using getTime()), then subtract that from the current time to know the amount of milliseconds that have passed between the two dates. With the resulting number you can use divisions and remainders to determine the days, hours, minutes and seconds.
  15. Why would you want to do that? Not everybody has or wants Chrome.
  16. IDs have the highest precedence of any rule. A rule with an ID will always override a rule without one.
  17. Hmm, the problem is that the character won't be right under the numerator as it should be. OpenOffice and Microsoft Office both have equation editors, there are so many mathematical notations that can't be represented with ordinary character formatting.
  18. A site link is far more useful than the HTML because you can use Firebug to look at the actual elements and the styles that are applied to them.
  19. Generally, people use images to represent equations, as most browsers don't support MathML and it's a complicated language to learn.Use an equation editor and save the equation as an image, you can use the image's alt attribute to describe the equation to devices that can't see images.
  20. The code only works if the page you're displaying in the iframe is in the same domain as the parent page.
  21. This thread was made because of the amount of people that come to us asking about this particular error.
  22. If it's the same function being called over and over, a call to setInterval() is good for animation.SVG is for vectors and canvas is for raster graphics. SVG is better if you have a single object and want to move it, because you don't have to worry about redrawing. However, the object you draw can't be very complex.
  23. That's the representation of the image data. You can put the header back. There are no PHP errors shouwing. I think you might have some whitespace or line breaks before or after the PHP block which is corrupting the image.
  24. Make the background-color black and the text black. Use the :hover pseudo-class to make the text white when the mouse is over the link.
×
×
  • Create New...