Search:

Type: Posts; User: DyDr; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Thread: Loop Puzzler

    by DyDr
    Replies
    2
    Views
    8,978

    Resolved The $buildings array contains data with values 1...

    The $buildings array contains data with values 1 - 64, but has index values 0 - 63. The last index value of 64 doesn't exist. If you had php's error_reporting set to E_ALL and display_errors set to...
  2. Thread: empty form

    by DyDr
    Replies
    2
    Views
    2,261

    We cannot help you with a coding problem without...

    We cannot help you with a coding problem without seeing your code.
  3. Resolved For the code using the latest SimplePie version,...

    For the code using the latest SimplePie version, this is nonsense logic.

    $feed is the instance of SimplePie. You would call the SimplePie methods using $feed->method_name_here...()

    $rsslist...
  4. Resolved The first (local) error is because $item is a...

    The first (local) error is because $item is a value but it isn't an object. The next (online) errors are because $feed is a null value. Posting your custom outputbody.php and main.php code and what...
  5. Replies
    1
    Views
    879

    The only time you should see an undefined $link...

    The only time you should see an undefined $link error is if the page gets requested with a $_GET['v'] value that doesn't exist in the comparisons in the code. When this is the case, $link won't exist...
  6. Replies
    2
    Views
    945

    $_SERVER['DOCUMENT_ROOT'] should exist and be set...

    $_SERVER['DOCUMENT_ROOT'] should exist and be set to the correct path for your document root folder. You can create a simple .php script to echo that value to see if it is. If it isn't set or isn't...
  7. Replies
    5
    Views
    1,753

    Actually, you became a coder when you...

    Actually, you became a coder when you created/edited your file with the file names in it, regardless of how proficient you are.

    The php.net documentation for the glob() function defines what the...
  8. Replies
    5
    Views
    1,753

    See the php glob() function to get an array of...

    See the php glob() function to get an array of the files within a folder.
  9. Forget about the mysqli extension. It is overly...

    Forget about the mysqli extension. It is overly complicated and inconsistent, to the point that whoever designed it apparently has never used php to execute queries in a real application.

    See the...
  10. The error is telling you that there is no column...

    The error is telling you that there is no column named ID in your table.

    When editing existing data, you are referring to an existing row in your table. You should do this by referencing an...
  11. While this wouldn't take much code, I doubt you...

    While this wouldn't take much code, I doubt you will find anyone willing to write and test something for you for free.

    Here's how I would do this -

    Add a date column to the table holding the...
  12. Replies
    12
    Views
    2,080

    The last post you made is even worse. The code is...

    The last post you made is even worse. The code is out of proper order, which will produce php errors and won't work at all, but beyond that, unless your web site is hosted at google, I can guarantee...
  13. Replies
    12
    Views
    2,080

    To implement the logging of the success (and...

    To implement the logging of the success (and failed) mail() calls, make the following changes to the code.

    Add the following lines, near the top of the code -



    // append data to a log file...
  14. Replies
    12
    Views
    2,080

    You need to log, either to a text file or a...

    You need to log, either to a text file or a database table, the date/time, entered email address, ip address, and the result (success or error messages.) This will give you a record of form...
  15. Replies
    4
    Views
    781

    If your code requires something for the site to...

    If your code requires something for the site to work properly, halting execution will prevent follow-on errors and unintended operation that could alter or corrupt other things. A missing file is an...
  16. Replies
    4
    Views
    781

    Both of the _once versions check a table of all...

    Both of the _once versions check a table of all the included/required files to see if the requested file has already been loaded. If the file has not already been loaded, it is. It's the extra time...
  17. Replies
    2
    Views
    956

    Since the constructor method/function is empty...

    Since the constructor method/function is empty (unless you altered the code when you posted it), you could just remove it. Otherwise, see the php.net documentation for what the constructor definition...
  18. The first mail() statement is using a header...

    The first mail() statement is using a header parameter that says the email is being sent from the email address that was entered in the form. Except during testing, where you might be entering your...
  19. When posting code in the forum, you need to add...

    When posting code in the forum, you need to add the forum's
    tags around your code. A(The) forum moderator has been editing your posts to add these, but has probably gotten tired of doing so.

    In...
  20. Thread: Email Form

    by DyDr
    Replies
    1
    Views
    1,848

    If you set php's error_reporting to E_ALL and...

    If you set php's error_reporting to E_ALL and display_errors to ON, php will help you by reporting and displaying all the errors it detects.

    You have a hand full of mismatching names between your...
  21. Replies
    4
    Views
    2,354

    Textareas don't have value attributes. You would...

    Textareas don't have value attributes. You would output the value in between the <textarea>output the value here...</textarea> tags.

    You are still repeating a lot on unnecessary code, making it...
  22. You would need to post the code that you need...

    You would need to post the code that you need help with. I suspect it is code in // do 'something' with the submitted form data in $data
  23. Here is an example of using the suggestions...

    Here is an example of using the suggestions listed above -

    <?php

    // some 'helper' functions -
    // apply html htmlentities to a value
    function _ent($val)
    {
    return htmlentities($val);
    }
  24. This code is repetitive, making it hard to write,...

    This code is repetitive, making it hard to write, test, and maintain. Also, the end result of processing the form data should be to do something with the submitted data. The code currently isn't...
  25. Here is an example showing the suggestions above....

    Here is an example showing the suggestions above. Note: I have changed the database table name, so that it indicates the meaning of the data, this example uses the php PDO database extension, not the...
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4