www.webdeveloper.com

Search:

Type: Posts; User: themarty

Page 1 of 19 1 2 3 4

Search: Search took 0.03 seconds.

  1. For your next posts (here or on any other...

    For your next posts (here or on any other developers forum), please keep in mind the following etiquette:
    1. When you post a problem and manage to solve it yourself: always post the answer in the...
  2. I don't mind to help out when you're stuck at a...

    I don't mind to help out when you're stuck at a particular point, but i don't feel much like generating all the code for you. There's only three simple steps you need to take:
    1. write a sql...
  3. simply retrieve the contents of the database...

    simply retrieve the contents of the database first and put it in a variable. echo it to the screen to make sure the variable contains the right data (temporarily as a check) and then assign that...
  4. You're in the wrong forum, this is a javascript...

    You're in the wrong forum, this is a javascript question.
    And as such, only the generated output is relevant. This: <?php getTierOne(); ?> doesn't say anthing about your problem.

    At this moment i...
  5. Replies
    1
    Views
    540

    Either use the logical OR operator to merge your...

    Either use the logical OR operator to merge your two ternary statements or use, for example, something like http://php.net/manual/en/function.in-array.php

    Also, your posts are much easier to read...
  6. Thread: PHP URL call

    by themarty
    Replies
    12
    Views
    5,525

    plenty of possibilities:...

    plenty of possibilities:
    https://www.google.nl/search?q=php+contents+url

    I find it very insecure though that passwords can be simply put in the url
  7. whenever i had problems displaying PDF files in...

    whenever i had problems displaying PDF files in IE it was always because IE downloaded the file to the cache dir, then deleted it immediately because it felt it should not cache it and then (after it...
  8. i hope you are generating the results using a...

    i hope you are generating the results using a query now.
    just to be sure, you can now do something like this:


    SELECT
    COUNT(*) AS total, filename
    FROM downloads
    GROUP BY filename
  9. If you can make a database connection is would be...

    If you can make a database connection is would be much wiser to store this information there instead of a text-file.
    also be careful with your concept of words. if someone downloads example.zip and...
  10. Replies
    5
    Views
    1,645

    If you are so sure of what the value is, simply...

    If you are so sure of what the value is, simply create a test-script that outputs the result of that regular experssion.

    p.e.



    if ( preg_match('/username/i', 'first name' ) ) {
    echo...
  11. Replies
    5
    Views
    1,645

    1. try to debug this, for example, by outputting...

    1. try to debug this, for example, by outputting the value of $field_name. make sure preg_match is actually evaluating what you expect it to be evaluating.
    2. globals are bad practice. try to...
  12. search the manual for string functions. and if...

    search the manual for string functions.
    and if they're not powerfull enough you can always use regular expressions
    (something like this:


    $str = "to be or not to be";...
  13. Replies
    1
    Views
    1,287

    you're calling session_start() after you've...

    you're calling session_start() after you've started outputting stuff to the browser. Please read the manual:

    http://php.net/manual/en/function.session-start.php

    Also, you would've seen this...
  14. It doesn't matter where you insert it into your...

    It doesn't matter where you insert it into your code. Just assign the converted date to a new variable and use that one instead
  15. Replies
    1
    Views
    2,644

    http://php.net/manual/en/function.utf8-encode.php

    http://php.net/manual/en/function.utf8-encode.php
  16. Replies
    3
    Views
    1,631

    define 'do not work' i don't own a cristal...

    define 'do not work'

    i don't own a cristal ball, so you really have to be more specific. what is it you're expecting, and what is the actual result, what are the error messages you're getting (if...
  17. Replies
    3
    Views
    1,631

    If you have a specific problem: what is that...

    If you have a specific problem: what is that problem?
    If you're looking for a standard solution to the problem, something like this is something you could've easily found with google
  18. There are several ways to do it. One of them is...

    There are several ways to do it. One of them is to use explode and then construct the string using the array explode gives you.
    Of course, you'll also validate first that the string has the proper...
  19. Thread: free php IDE

    by themarty
    Replies
    5
    Views
    2,106

    Considering that it has to be 'free', the most...

    Considering that it has to be 'free', the most complete IDE i know is Netbeans:

    http://netbeans.org/projects/php/
  20. Thread: Get or Post?

    by themarty
    Replies
    19
    Views
    3,659

    As said before, try analyzing what happens. The...

    As said before, try analyzing what happens. The LiveHttpHeaders addon for firefox is a good tool for doing this for example.

    What you can also do is recreate the form you're trying to submit in a...
  21. hmm...i'm still not sure that i fully understand...

    hmm...i'm still not sure that i fully understand how you've set things up.
    but maybe this will help:

    You probably have a combination of invoice-id (the primary key of the invoice) and a 'line'-id...
  22. Replies
    4
    Views
    2,014

    Regardless of the what you're working on, one of...

    Regardless of the what you're working on, one of your goals should always be to create reusable code. Why? Simply because it will save you time (and bugs) later.

    I don't agree with Belrick,...
  23. You should (create and) use a primary key for...

    You should (create and) use a primary key for doing updates
  24. Replies
    1
    Views
    1,830

    _always_ check if the query was executed...

    _always_ check if the query was executed succesfully.
    and if not, use mysql_error to see what the problem is
  25. Replies
    7
    Views
    1,509

    @OctoberWind the !isset() is not necesarry:...

    @OctoberWind
    the !isset() is not necesarry: you're looping over the values of an array, so they key will always exist.
    A much better approach would be to define a custom array of keys of required...
Results 1 to 25 of 460
Page 1 of 19 1 2 3 4
HTML5 Development Center



Recent Articles