www.webdeveloper.com

Search:

Type: Posts; User: frankvw

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Style sheet for printing; unexpected behavior of asterisk

    According to what I have read, the asterisk (*) in a style sheet is a wildcard, which will applies styles to all elements in that portion of the DOM.

    Which I have used to try and write a separate...
  2. Replies
    4
    Views
    2,300

    Hi, Darren, If it's an HTML website (i.e....

    Hi, Darren,

    If it's an HTML website (i.e. static pages), you're pretty much reduced to including a third party currency exchage website or parts thereof into one of your pages using an <iframe>...
  3. RewriteRule to move entire size except one directory

    Hi, everyone,

    I'm sure this is simple but I just can't see it. I've been bashing my head against the wall for over an hour now. I need a rewriterule to permanently move an entire website, except...
  4. Replies
    9
    Views
    5,225

    Not sure what's going on, but if it were me I...

    Not sure what's going on, but if it were me I would first compare phpinfo() output from my home WAMP server with that of the Unix server and see what permissions and options you have.

    Also with...
  5. OK. You win. :-) I set up a test database with...

    OK. You win. :-)

    I set up a test database with just over 15,000 LiveJournal weblog posts. Iterating through a row retrieval loop took 5635.06698608 ms. The equivalent SELECT COUNT (*) query took...
  6. I went the COUNT(*) route because it would keep...

    I went the COUNT(*) route because it would keep the code much simpler. One does not have to update a counter every time data is fetched and the row pointer advances, and then do a reset, iterate...
  7. Damn. You are right. Now what? :-( // FvW

    Damn. You are right.

    Now what? :-(

    // FvW
  8. Solved

    OK. Here it is. Prior to calling this function, the database handle returned by the constructor has been saved in a global var, and the dbQuery() function (which is the wrapper that abstracts...
  9. Benchmark this? :-)

    I couldn't agree with you more. Iterating through a loop to retrieve rows and count them, then discard them, is so wasteful in terms of system resources that it's not even funny any more.

    Worse,...
  10. OK. With that you have already helped me along a...

    OK. With that you have already helped me along a great deal. So thank you!

    However, there is still a problem. With MySQL one could do something like:


    $qid = mysql_query ('SELECT * FROM...
  11. It appears that the PHP implementation isn't the...

    It appears that the PHP implementation isn't the problem - the feature seems to have been dropped from the SQLite3 API. It is not considered a PHP bug, because


    "SQLite and SQLite3 have different...
  12. I have had a look at that, but I'm not sure I...

    I have had a look at that, but I'm not sure I understand its behaviour fully - especially whether or not that only works with prepared statements. But that's more a SQLite issue than a PHP matter, I...
  13. The problem with that is that if you do that...

    The problem with that is that if you do that after a select it _will_ return the number of rows, but it will also advance the row pointer, which mysql_num_rows does not.

    // FvW
  14. [RESOLVED] mysql_num_rows equivalent for sqlite3?

    Hi, everyone,

    In a dim and distant past I wrote my own database abstraction layer, with the vague idea that one day that might prove useful in using different RDBMS's. It's trivial, really - it...
  15. Aha. Mystery explained, problem solved. I had not...

    Aha. Mystery explained, problem solved. I had not assigned a fixed height to the table cells, but I let them scale dynamically on the basis of the (varying) sizes of the images to be displayed in...
  16. Yes I did. But no effect. However, I have...

    Yes I did. But no effect.

    However, I have taken the example code referred to by Moritana, and that works. So there is obviously something in my own CSS code that overrides the positioning. I am...
  17. Thanks. I tried that, but when I assigned...

    Thanks. I tried that, but when I assigned absolute positioning to the caption text, it appeared positioned relatively to the page rather than to the table cell. Which confirms what is said in the...
  18. [RESOLVED] Multiple object with different alignment in single table cells

    Hi, everyone,

    This might be very simple but if it is, I just can't see it.

    I have a single table cell of arbitrary width and height. In that table cell I want to display an image that must be...
  19. Replies
    10
    Views
    12,362

    Thanks for the responses, everyone! So. The...

    Thanks for the responses, everyone!

    So. The long and the short of it is that there is neither an easy nor a good way to do this using CSS alone. Okay - so as ideas go this one was a dead end. If...
  20. Replies
    10
    Views
    12,362

    Using CSS to scale images

    Hi, everyone,

    I'm wondering if it is possible at all to use CSS to increase or reduce the size (width/height) of an image to, say, 50% of its original. (Yes, I know that client-side resizing is...
  21. While that is true, the PHP documentation states...

    While that is true, the PHP documentation states very clearly that strip_tags() will always remove both embedded PHP code and HTML comments - a feature that cannot even be turned off because it is...
  22. Hi, NogDog, That's not what's been happening...

    Hi, NogDog,


    That's not what's been happening - I'm not getting mangled HTML code, I'm running perfectly valid input through strip_tags() and seeing major chunks that are being left out or...
  23. strip_tags aborts when encountering certain text syntax - Why?

    I'm sure this is a feature and not a bug, and I'm overlooking something obvious here. But I just can't see it.

    I have the following code:


    $wtf = <<<WTF
    <h1>First header</h1>
    <p...
  24. I fiddled with the POSIX syntax for quite a...

    I fiddled with the POSIX syntax for quite a while, but it didn't work for me. Strangely enough. But then I got it sorted out using \W|\b\S\b so I sort of gave up at that point... :-)

    // FvW
  25. And that was enough to eventually point me into...

    And that was enough to eventually point me into the right direction, so it did help me out in the end!

    I did start with the definition, and it would have worked out fine, if not for the fact that...
Results 1 to 25 of 62
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles