Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Do this: $active = mysql_query("SELECT * FROM users WHERE email='$email' AND activated='1'") OR die(mysql_error()); It should print out a more descriptive error of the query. I don't see any errors, so perhaps a column is misspelled?
  2. Is it on a public site where I could possibly see it live?
  3. Try this line: echo '<a href="#" onclick="insertAtCursor(\'document.softarea.softstring\','."'<h3></h3>'".');">insert h3</a>'; IE's handling of JS is buggy and offers no debugging support. Sucks.
  4. just use str_replace() to replace '<b>' and '</b>' with ''
  5. You're not making any sense. If you want to remove the bold tag, you can't put it as the second argument of strip_tags(). If they didn't use the b tag, what tag did they use to make it bold? strong? Either way, just use strip_tags() with NO second argument.
  6. Uhm, if it worked before and didn't now, something else had to change. all I did was pop the first two elements off. $GLOBALS['files'] is an array, right?
  7. Because you're echoing the one at number 2 over and over, not starting at two. Try this: $files = $GLOBALS['files']; $files = array_shift(array_shift($files)); foreach($files AS $file){ $nums[] = substr($file, 0, strpos($file, '.')); }
  8. the second argument of strip_tags() is allowed tags. You told it to strip every tag BUT <b> . What are you replacing with str_ireplace?
  9. No problem! Don't forget to hit the solved button
  10. You have different settings for error reporting on the servers. if(isset($_GET['id'])){ $vid = $_GET['id']; }else{ $vid = NULL; }
  11. foreach($files AS $file){ $nums[] = substr($file, 0, strpos($file, '.')); } That should get you an array of all the numbers - is that more like what you meant?
  12. http://us2.php.net/manual/en/function.array-multisort.php There's an example that explains: Example 242. Sorting multi-dimensional array
  13. So if you add the style I posted it should change any bold text to normal. If the only tag in it is the bold tag, you can use strip_tags(). Or you can use strip_tags() and allow br, p, etc.
  14. This is one reason not to buy things that offer no support What isn't functioning?
  15. If it didn't work, post your code and the errors you get. We can't help if you don't tell us what's wrong.
  16. Use ||, not |. | is a bitwise operator, || is the logical operator OR.
  17. That is not at all the cause of the problem...read the stickied topic about header errors. The problem is the output of line 25.
  18. for your stylesheet idea, did you try b{ text-weight: normal; } That should work.
  19. Which are? What is the problem? Both Orio's and mine work fine as far as we can tell, so you need to show what's not working.
  20. header('Location: page.php'); you can't have any output on the page for this to work. If you have output you need to use the meta-refresh tag.
  21. Because it's not yet been exactly three years. Those amounts are rounded down, that's what Floor does. You know by looking at it that if tomorrow is their birthday, they are not yet 4 years old. However, since we don't know the time they were born, we assume it was midnight, and when you round out the days, it turns out to be 1460. If you put in a different date such as 2003-03-05, you'll see the days go down, because it's not quite four years yet. Their age is still 3.
  22. When I send that date to my function I get the correct years of: Array ( [seconds] => 126184073 [minutes] => 2103067 [hours] => 35051 [days] => 1460 [years] => 3 ) Is your server time set to a different timezone?
  23. Javascript: http://www.scriptomizers.com/javascript/popup_creator
  24. Now that I think about it, due to the nature of leap years (Every 4 years except in the 100 years, except for 1000 years, etc.) It might be more accurate to do the math with the formatted dates. I guess it depends on how detailed you're trying to get.
  25. There are lots of captcha tools, you could look at how they did it?
×
×
  • 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.