dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: NogDog

Page 1 of 20 1 2 3 4

Search: Search took 0.22 seconds; generated 35 minute(s) ago.

  1. Thread: Hello Everyone

    by NogDog
    Replies
    2
    Views
    246

    http://www.webdeveloper.com/forum/misc.php?do=show...

    http://www.webdeveloper.com/forum/misc.php?do=showrules
  2. You need to use the "%" character as a wildcard...

    You need to use the "%" character as a wildcard in a LIKE search. (Note that if you use it at the beginning of the search term, any index on that field won't be useable.)
  3. Replies
    1
    Views
    239

    That will require JavaScript, probably using AJAX...

    That will require JavaScript, probably using AJAX calls to PHP scripts on the server, since the server (where your PHP runs) has no idea what the user is doing until the browser sends something to...
  4. Replies
    22
    Views
    886

    Without changing things as radically as I'd...

    Without changing things as radically as I'd prefer, here's how you could rewrite one of those functions to make use of the advantages of mysqli_*() functions. Wherever you call that function, you...
  5. Replies
    2
    Views
    280

    Also, I would think this is pretty much just a...

    Also, I would think this is pretty much just a CSS issue -- at least if you handle it that way, your PHP code should have nothing to do with it.
  6. I'd start by testing the return value from mail()...

    I'd start by testing the return value from mail() to see if it's ever false. If they're not failing (for some unknown reason), then my next guess would be that your mail server is doing something...
  7. Replies
    3
    Views
    320

    I found this on stackoverflow, which perhaps...

    I found this on stackoverflow, which perhaps could be the issue?

    If you are, I'm thinking maybe the script that waits could do whatever it needs with $_SESSION right away, then do a...
  8. Replies
    3
    Views
    320

    I suppose it's possible you have a limited number...

    I suppose it's possible you have a limited number of processes allocated to PHP by the web server, but my suspicion is it's some other resource that is blocking: database, file system, something I...
  9. Unfortunately, PDOStatement::rowCount() is not...

    Unfortunately, PDOStatement::rowCount() is not guaranteed to work for all DBMS's for SELECT queries. Some alternatives are to either submit a separate COUNT(*) query with the same parameters, or to...
  10. Replies
    15
    Views
    1,514

    Do the best you can. Talk out what you're doing,...

    Do the best you can. Talk out what you're doing, explain where you're unsure (and why) and how you would normally make yourself sure in a typical work environment. Anyone who is more interested in...
  11. Replies
    2
    Views
    331

    If you're trying to determine if a file is a...

    If you're trying to determine if a file is a valid image file and what type, you can get that info from getimagesize(). Other than that, I'd have to do the same web searching you would. :)
  12. Argh! Please learn how to use this site's BBCode...

    Argh! Please learn how to use this site's BBCode tags for formatting your code snippets (see the [code], [html], and [php] tags). Show enough code so we can see where the problem is, but don't swamp...
  13. Replies
    3
    Views
    261

    If you are storing the actual image as a BLOB in...

    If you are storing the actual image as a BLOB in the database, then you will need a separate file-server script just for outputting that image. Therefore, your HTML output would include an <img> tag...
  14. Replies
    6
    Views
    419

    If you do this kind of stuff long enough,...

    If you do this kind of stuff long enough, everything becomes a case a déjà vu. :)
  15. It all depends on how/where you will get the data...

    It all depends on how/where you will get the data (i.e. what you negotiate with each vendor), and what your personal definition of "easy" is. :)
  16. Replies
    15
    Views
    1,514

    Use a good editor/IDE with syntax-checking for...

    Use a good editor/IDE with syntax-checking for the languages you'll be using, and have browser bookmarks at your fingertips for the official language references. :)
  17. Replies
    6
    Views
    419

    Ah, so you're attempting to get the min()/max()...

    Ah, so you're attempting to get the min()/max() on an array of objects, not an array of numeric values. Therefore, you'd need to loop through that array to extract the 'num' value from each into a...
  18. Replies
    1
    Views
    293

    My guess is that some (and possibly all) of the...

    My guess is that some (and possibly all) of the parameters in red, below, are not correct for your hosting environment:


    mysql_connect("localhost", "root", "")

    (E.g.: a database server with a...
  19. Depends on what sorts of API's the source sites...

    Depends on what sorts of API's the source sites provide to collect that information (if any).
  20. Go to http://php.net/mysqli and search for...

    Go to http://php.net/mysqli and search for "mysqli::query"
  21. Replies
    6
    Views
    419

    Might be informative to do this, so we know...

    Might be informative to do this, so we know what's actually being worked with:


    $chapnums = $novel->xpath('./child::chapters/child::chap/attribute::num');
    echo "<pre>".var_export($chapnums,...
  22. I'd start by outputting those connection...

    I'd start by outputting those connection parameters as part of the error output to see what values (if any) they have.
  23. If you do it in the single file technique as in...

    If you do it in the single file technique as in the first reply, it will need to be a .php file, not a .html file -- and of course your web server needs to be running PHP. (Technically, it doesn't...
  24. Replies
    5
    Views
    377

    Good point. For the OP, this would likely be the...

    Good point. For the OP, this would likely be the cleanest solution. When you start doing something dynamic in the output (such as including PHP variables in it), the lines of demarcation between...
  25. Replies
    5
    Views
    377

    Note that HTML attributes can use single quotes,...

    Note that HTML attributes can use single quotes, which sometimes is easier within PHP if you want to include variables.


    $test = 'fubar';
    echo "<p id='$test'>This is a <span stlye='color:...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles