dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Stephen Philbin

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    9
    Views
    1,158

    Something like "select * from...

    Something like
    "select * from $_SERVER[dropdown_selection_name] where where id = $someNumber" might be what you're after, but I'm just guessing. I can't quite figure out what you're asking. If it's...
  2. No. I was just pointing out that it's very easy...

    No. I was just pointing out that it's very easy to forget to tell the DOM which child you want to append a document fragment to. Looking at your error, it seems you're trying to append an empty...
  3. Don't worry about it. as long as whatever you're...

    Don't worry about it. as long as whatever you're using is working for you, it's fine. I will have just forgotten something from the API that would make what I had in mind, actually happen (maybe...
  4. Replies
    6
    Views
    1,230

    Check out PHPs DateTime object...

    Check out PHPs DateTime object. It can be used to do exactly this task and many more besides. I'd strongly recommend using this whenever you're having to deal with dates and times in PHP.
  5. Well it sounds like refactoring your code to use...

    Well it sounds like refactoring your code to use the DOM for the whole document is unlikely to be practical, so I wouldn't worry about it. I'd still leave plenty of comments about what you're doing,...
  6. Well using the DOM just for particular sections...

    Well using the DOM just for particular sections of your page, rather than the whole thing, certainly seems like an unusual thing to do, but if you've already done a lot of work in this way and it'd...
  7. Replies
    7
    Views
    1,401

    If you come from a background in Java then I'd...

    If you come from a background in Java then I'd really have a look at using that. I learned PHP long before I started on Java. After I've spent a while with Java, going back to PHP makes me cry.
  8. Replies
    11
    Views
    1,695

    Always happy to be helpful if ever I can be. ;)

    Always happy to be helpful if ever I can be. ;)
  9. Hi wzshop. Don't worry about that third example...

    Hi wzshop. Don't worry about that third example you posted. The only time I'd ever use that bit of code is in an example of how not to use the DOM. Like I said, you should really be using the...
  10. Replies
    11
    Views
    1,695

    The error suppression operator...

    The error suppression operator (or @ symbol to you and me) is useful in many stiuations. You'll often see people i'll simply describe as having a rather inflexible mindset telling people that they...
  11. Hi wzshop. Sorry I haven't responded all day,...

    Hi wzshop. Sorry I haven't responded all day, I've been a busy bee. It's good to see you've still been working at the problem. :) Ok, before we go any further, I should point out that the reason...
  12. Yeah I was kinda' looking forward to some...

    Yeah I was kinda' looking forward to some insights from mustbecrazy 'cause he said he comes from a background in databases so I was hoping he might pass on some interesting info, but I guess that was...
  13. Well if your characters are no longer being...

    Well if your characters are no longer being mangled then I'd suggest making test pages that are valid (X)HTML. That way libxml will have less to complain about when trying to feed it test cases. Just...
  14. Well I was hoping for some insight on whether or...

    Well I was hoping for some insight on whether or not using "ON `one`.`id` = `many`.`one_id`" would give any kind of performance boost over having the same thing in the where clause. Like if using...
  15. Replies
    7
    Views
    1,237

    A crude way to do it would be to just do a...

    A crude way to do it would be to just do a preg_replace for two or more newlines in a row and replace 'em with "</p><p>", then you could just echo the content between an opening and closing p tag....
  16. Replies
    12
    Views
    1,595

    I've posted my SQL question in the SQL forum now....

    I've posted my SQL question in the SQL forum now. I have other questions too, but I figured I'd start with the one that's been nagging at me for the longest time. The thread is here.
  17. Oh and I am aware that the listing comma in the...

    Oh and I am aware that the listing comma in the tables list is also considered a synonym (with low precedence) for JOIN. I guess what I'm really asking here is, by not using the JOIN form, am I...
  18. [RESOLVED] JOINs: a necessity or syntactic (in)convenience? (MySQL)

    Hi folks. I've often wondered for many years about the use of joins in SQL. It's one of those things I know I should look into, but there always seems to be something even more important that I need...
  19. Replies
    12
    Views
    1,595

    Oh and I forgot to say that when I do get around...

    Oh and I forgot to say that when I do get around to posting my SQL related question I'll post it publicly on the forum and just send a pm telling you where it is. There's no point doing it via PM...
  20. Replies
    12
    Views
    1,595

    I'd second NogDog's sentiments on OOP. There just...

    I'd second NogDog's sentiments on OOP. There just isn't any point in delaying it. It's like learning to walk but waiting until your'e 10 to try running. Besides, PHP is a seriously wacky language...
  21. Replies
    12
    Views
    1,595

    I agree with NogDog; the two links he posted are...

    I agree with NogDog; the two links he posted are always the first place I look when I have a question on their respective subjects. That being said, please don't assume you're expected to learn the...
  22. My guess is that the dollar sign in the where...

    My guess is that the dollar sign in the where clause is a typo. You're telling the database to fetch rows with an id of $2 instead of 2. Remove the dollar sign and your where clause and that should...
  23. An example of what NogDog is talking about would...

    An example of what NogDog is talking about would be
    SELECT `something` from `the_table` WHERE `the_table`.`id` = 2;

    Like NogDog said, there's lots of good info on this all over the internet. I...
  24. Hi, wzshop. Great to hear the fix is working for...

    Hi, wzshop. Great to hear the fix is working for you. :D

    As far as I know, the work-around should be good for any DOMdocument as long as its content is utf-8 encoded. As far as encoding the text...
  25. Replies
    3
    Views
    1,568

    This question is probably coming waytoo late but,...

    This question is probably coming waytoo late but, what constitutes a valid P.O. Box address for your purposes?

    I'm rusty as hell on Regex in Java so my syntax may be a bit off, but might ...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles