Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. No problem To achieve multiple columns, keep a counter of the rows in your loop, then check to see if it hits a specific number and create a new column. You need to add ORDER BY teams ASC to your query for alphabetic sorting. Not sure exactly what you're trying to do here.
  2. Please listen. Use this code: $ret = preg_replace('~'.stripslashes($pattern).'~i', $this->current_feed['replace'][$i], $this->postinfo[$postfield]);
  3. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=317694.0
  4. 1) Your link is broken. 2) You posted this in "PHP Installation & Configuration". Moving to "PHP Coding" section.
  5. Not sure I understand exactly what you're trying to do. How do you plan on going about this? If I guessed correctly, you could make a hash of the page and check it against the old one.
  6. This worked fine up until an hour ago when the "«" was replaced with '�' and it created the error. I then fixed the line but it still keeps saying that the '�' is causing an "Unknown modifier" even though the '�' doesn't even exist in the code any more... ? The code you pasted still had it.
  7. This. I just told you that character is not supported. Look at Salathe's link:
  8. Single quotes are for strings. Backtics are for table names that are the same as reserved words, which you should avoid. Although, they won't hurt even if they're not needed.
  9. The weird part is this script worked fine, then where the («) are was replaced with those weird question marks so I replaced with the backed up file but still get those errors saying they still exist when they don't any more? Post your current code.
  10. I think you're using a character set that's not supported. Why are you using that character as a delimiter anyway? («) Also, remove the '@' symbol. Suppressing errors isn't healthy, if you have errors you should handle them appropriately.
  11. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=317690.0
  12. I don't think he meant anything in particular, AFAIK it doesn't mean anything, except that OOP can be a bit mysterious and confusing how it works sometimes especially if you're new.
  13. It's better format for readability purposes as well.
  14. The IF without braces only works for the line directly under it. You should be using braces for your IF and ELSE blocks.
  15. Looks good, does it not work or something?. I find it weird you're using equals for one comparison, and LIKE for the other term.
  16. Took about 30 seconds for me to load as well but YSlow gave your site, "Overall performance score 100"...
  17. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=317682.0
  18. Maq

    Query Error

    I believe GROUP BY should come right after your WHERE clause.
  19. These are ways that you seem not to want, but maybe they will help: 1) Loading an image from an link in a HTML email. 2) Javascript trickery. 3) Have the user click a link. The first two aren't so reliable.
  20. You're going to need a server side language to connect to the db, parse the XML file, and retrieve the images.
  21. Post some relevant code. You can just check it in PHP.
  22. Not sure exactly what you're trying to do so you may need to elaborate. But if I guess correctly you would want to read about mysql trigger - http://dev.mysql.com/doc/refman/5.0/en/triggers.html
  23. This is solved, correct?
  24. Look at some of these examples - http://php.net/manual/en/function.mysql-fetch-array.php
  25. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=317585.0
×
×
  • 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.