Jump to content

benanamen

Members
  • Posts

    2,134
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by benanamen

  1. 12 hours ago, 684425 said:

    from right. No decimal. First comma after 3 digits and then commas after every 2 digits

    That is an interesting number format I have never seen. Could you please tell us what that is about and what it represents.

  2. 2 hours ago, nadav_rock said:

    i am new to php. can you give me the code for the simple if else statment?

    Since you are new, you may not know the authors of Php have offered a free manual. You will need to refer to this manual all throughout your programming journey so best to bookmark it. Php Manual.

    Here is the specific manual page that will teach you about if/elsif/else.
    https://www.php.net/manual/en/control-structures.elseif.php

  3. Ok, so a subscription _ types lookup table with subscription_type_id, subscription_type_description

    Then in data table you have subscription_type_id keyed to the lookup table.

  4. Seems to me it would be better to have contract_start and contract_end date columns. If you will be needing historical data then you would have a table for storing each term start/end dates keyed to the user_id.

    You will also gain a lot of flexibility with being able to do date calculations and Analytics.

  5. 1 hour ago, maxxd said:

    Firefox has an Edit and Resend button you can use to craft a new request.  This just sends the request and shows the response in the dev tools, it won't cause the page to change or trigger and result processing in javascript.

    That is incorrect. It does exactly what it says, it resends the request. If you modified the request, the modification is sent. You likely didn't test it properly. Test it on a request that updates a database record and see what happens.

  6. 8 minutes ago, SaranacLake said:

    it's not like they can read what was submitted, right?

    "They" sure can! Not only read it, but manipulate it and even send parameters that are not in your form. This is why you need a whitelist of expected/allowed fields and validation.

  7. 2 hours ago, etopal said:

    I think the end solution was a very simple one

    Except that isn't the solution. For one, if you dont kill the script after a header redirect, the rest of the code still runs. Using a sequential numbering of pages points to a serious design flaw. If you have a million users, are you really going to have and maintain a million pages?

  8. 9 hours ago, zeus69 said:

    "What have you tried so far?"
    What should I answer this question? I didn't do anything

    @zeus69, on an programming help forum it is expected that you have first made some sort of attempt at solving the problem you are asking about even if it's just a google search. That is why you get asked "What have you tried so far?" You said "I didn't do anything", thus the lack of interest in helping you.

    You need to make some sort of attempt at solving the problem yourself. If you get stuck, post on a forum what the overall problem is that you are trying to solve and what attempts you made at solving it along with the results you got and the results you expect to get.

    I would suggest you read through this page before posting on any help forums.
    http://www.catb.org/~esr/faqs/smart-questions.html

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.