Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by benanamen

  1. What is the real problem that you're trying to solve with this?
  2. You are correct. Bitbucket has free private repos.
  3. I knew nothing about this and found the answer in 2 seconds using this web tool called google. https://help.github.com/articles/what-is-my-disk-quota/ https://help.github.com/articles/about-storage-and-bandwidth-usage/
  4. benanamen

    Url Accepted with space

    If you copy paste the URL from the browser you will see that the space is transformed to %20. You should not have the spaces in the first place. Spaces are considered unsafe according to the RFC.
  5. benanamen

    fatal error: call to a member function

    Your curly braces are messed up. If you used a proper IDE you would see these basic problems. There are other issues as well including trying to call a private property. Overall, this is a pretty bad Class. I will let the other members comment further. EDIT: couple more comments: The connection parrameters should not be hard coded in the class. You should not be outputting internal system errors to the users. The querys should be passed, not hard coded nor the HTML, the connection should do just that, with the CRUD operations in another class. The path you are on will require you to always have to edit the class every time you use it. Think "Single Responsibility".
  6. benanamen

    Dont get all information in the mail.

    You are not uploading files so there is no reason to use enctype="multipart/form-data" . Just leave out the enctype and it will use the default.
  7. benanamen

    Dont get all information in the mail.

    Your error checking logic is wrong. If you submit a proper form the POST fields will always be set (except unchecked checkboxes) so they will always be in the POST array and your error checks will never run. You need to trim the POST array, then check for empty. You need to compose the body of the email with the expected variables. Right now the message only contains the message field. Post your form code here while your at it..
  8. benanamen

    classes, interfaces and methods

    An Interface does not "call" anything. I think the manual description is pretty clear what an Interface does. Source: http://php.net/manual/en/language.oop5.interfaces.php
  9. benanamen

    Easy ? Display Array values

    The real problem is you are improperly storing your data. Do not store your data as comma separated values. Fix the database first. You need to learn about "Database Normalization".
  10. I said nothing whatsoever about bypassing anything.
  11. You should make sure the code is not encoded by Zend Guard or similar or you wont be able to do any modifications.
  12. benanamen

    Need help with an account update snippet

    Do you see a problem here? foreach (_$POST as $key => $value)
  13. benanamen

    How to make it insert info from session

    Notice anything wrong here? $result = mysqli_query($con,"SELECT * FROM {$_SESSION['datakey']}"; 
  14. benanamen

    How to make it insert info from session

    I know OP, tell us what the Real problem is you are trying to solve rather than asking about the poorly implemented attempt at solving the problem. What is the overall task at hand?
  15. benanamen

    Why Echoing Row Data From Mysql Tbls Fail ?

    Just a quick note. If you have strict_types enabled this will not work and cause a Fatal error. You will need to use true for the second parameter. Problem: <?php declare(strict_types=1); echo '<pre>', print_r($_POST, 1), '</pre>'; Corrected <?php declare(strict_types=1); echo '<pre>', print_r($_POST, true), '</pre>';
  16. Based on your objective you should just import a dictionary and then use code to randomly display the data. I found one Dictionary DB at https://sourceforge.net/projects/mysqlenglishdictionary/
  17. benanamen

    Download file from mySQL database (blob)

    Something smells amiss here.
  18. Mysql is a high concurrency database. It processes the requests as soon as it gets them.
  19. benanamen

    sort filenames y-m-d when it contains m-d-y

    That's because it was a first time post spam.
  20. benanamen

    password_verify not working

    Now you just need to work on your incorrect use of htmlentities and stripslashes, and depending in the name of a button to be submitted in order for the script to work. Hint: All of it needs to go.
  21. Better explanation of the task. Do you actually have two separate forms or do you have one form with two dropdowns? It sounds like it is the latter. Have you been calling each dropdown a form? It looks like your logic is all over the place. Its going to take a few good minds here to sort through it.
  22. I was just going to say the same thing. By the way, you still described your attempted solution to the real problem. Think on a higher level, meaning, what is the overall task at hand. We know you have multiple forms on one page. Why? Tell us about that.
  23. OP, how about telling us what the real problem is instead of asking about your attempted solution to the real problem. What is the problem you are trying to solve with all these submits in the same page?
  24. benanamen

    SQL injection Hysteria? Or not?

    Run your code in Php 7 and see what happens.
  25. This is very simple. Here is how to handle multiple forms on the same page. <?php if ($_SERVER['REQUEST_METHOD'] === "POST") { if (isset($_POST['form1'])) { echo 'Form 1 Submitted'; } if (isset($_POST['form2'])) { echo 'Form 2 Submitted'; } } ?> <form method="post"> <input type="hidden" name="form1"> <input type="submit" value="Form 1"> </form> <form method="post"> <input type="hidden" name="form2"> <input type="submit" value="Form 2"> </form>

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.