Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. WHERE link_id IN ($ids) 'link_id' exists in multiple tables, you must specify which one you want to use. Just like in your SELECT clause.
  2. Right. Can we see your MyDB class?
  3. Maq

    ....

    Happy New Years everyone
  4. IMO, the 'var'. I generally like to define variables before they are used so if you have to make a change to them you only have to do it in a single place.
  5. Something like this: $var = $post->post_name; $title = $post->post_title; echo "Download this blog post in eFormat (.rtf) - {$title}';"; ?>
  6. Why don't you use a database?
  7. mysql_num_rows*
  8. I like the title, but that's a little overboard to simply format a number.
  9. Oh, duh.
  10. Glad you got it working. Weird that either of our solutions were successful because, like you said, they are essentially the same.
  11. There is probably an easier way but this will at least get you started: $arr = array(75.000, 75.500, 100, 100.5, 1234.654, 1234.200, 1123456.789); foreach($arr as $key => $value) { echo rtrim(number_format($value, 4), '0') . "\n"; } ?>
  12. What is $post–>post_name;? Does it return anything?
  13. I prefer to have the master string in double quotes because it allows variables to interpolate. For attributes, I use single quotes.
  14. Why don't you just just pass the id via HTTP and add 5 each time?
  15. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=318270.0
  16. if (!$mysql_select_db) { should be: if (!$db_selected) { Hence the die() but no mysql_error() output.
  17. No, but here are some helpful links with examples: mysql_query mysql_num_rows
  18. Your code should be producing a fatal error. You have a while block wrapped around a function definition. Are you sure there are more accounts in your db with status='active'?
  19. You can't use the isset() method like that. It can take comma separated values but that would be equivalent to &&, not ||. Unfortunately, AFAIK, you may have to invoke that method on each POST.
  20. Use code tags. What's not working? What's happeneing? What have you done to isolate the problem?
  21. Thanks for sharing.
  22. Have you actually resolved this?
  23. Who are you hosted with?
×
×
  • 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.