Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. Yeah, I'm getting: Parse error: syntax error, unexpected ' Just a word of advice. It's usually a good idea to make sure everything works before submission.
  2. Maq

    Upload Fail

    ...? Calm down before you hurt yourself kid.
  3. Glad to see it working. We actually have a Mod Rewrite section, I'll move it there for you.
  4. Hi Omirion, welcome to PHPF
  5. Maq

    Hello

    Hi Nems, welcome
  6. Maq

    xkcd classics

    I bet you run around in a cape at home with "regex" embroidered on it. Please tell me I'm right.
  7. Maq

    xkcd classics

    I agree. They always brighten up my day.
  8. Same here. Hmm, you must have one dirty car...
  9. Is this really solved? If so, please share.
  10. Glad to hear everything is working. Please mark as solved by clicking the self titled button in the bottom left.
  11. Maq

    PHP no nos

    I would have to say one of my biggest pet peeves in developing is when people don't use any styling what so ever. No indentation, no formatting, no consistency... Makes me sick!
  12. Maq

    SQL Join

    You can always test these cases out yourself to see if there will be any difference.
  13. I always thought you could reference aggregate functions in the result set without an alias...?
  14. This may be a typo but you're missing the terminating ')' for your mysql_query call.
  15. lol, nice video. Looks smooth but really slow.
  16. Please explain the steps you took installing PHP. Are you attempting to install PHP individually or are you installing a stack such as [W|L|X]AMP?
  17. Good to hear you you got it working. You can mark the topic as solved by clicking the tab on the bottom left.
  18. You have to use a combination of the DOM element and XPath. Here is an example using your test data to extract all of the comment values that have a lang attribute value of en_GB. $dom = new DOMDocument; $dom->load('comment.xml'); $xpath = new DOMXPath($dom); $xpath->registerNamespace("php", "http://php.net/xpath"); $nodes = $xpath->query('/comments/comment[@lang = "en_GB"]'); foreach ($nodes as $node) { $value = $node->nodeValue; echo $value; } ?> This assumes the XML file is in the same directory as the PHP script. Let me know if you have any questions.
  19. Sure. In what regard would you like to stop the script from executing? (time, number of loops, etc...)
  20. Maq

    very strange

    Oh, to have access, you need to enter a secret password in the form of a query string for that -or-, you can simply hit the [more] link found beneath the initial emoticons listed in the preview section. Alternatively, you can unlock them using the secret decoder ring Guru's receive in the mail.
  21. Sticky: http://www.phpfreaks.com/forums/index.php/topic,58799.0.html
  22. You can make your id fields an array "id[]" so when you pass it to the SQL statement you can use: WHERE id IN(?); and implode the id array in the PDO execute() call.
  23. What you are describing is termed 'pagination'. This tutorial should help: http://www.phpfreaks.com/tutorial/basic-pagination
  24. Maq

    very strange

    I assume you're talking about the "Date Registered" timestamp. The timestamp was probably manually changed in the DB.
  25. 1) That's impossible to answer unless, like mike mentioned, you provide code. 2) Because not everything is procedural.
×
×
  • 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.