Jump to content

benanamen

Members
  • Posts

    2,134
  • Joined

  • Last visited

  • Days Won

    42

Everything posted by benanamen

  1. Before we get to your question, Why do you want to insert 25 zeros and commas?
  2. Yes. You can setup a cron job to run a script that checks Mysql for a date to send the email.
  3. Preg_match is your friend. Read the manual.
  4. You have several other problems that have not been mentioned. 1. if(isset($_POST['submit'])) SHOULD BE if ($_SERVER['REQUEST_METHOD'] == 'POST') 2. You are using the obsolete <center> tag. On top of that, you are missing several closing </center> tags. You should be using CSS. 3. You are missing several closing </td> tags. If you used a proper IDE with syntax highlighting you would have seen that. 4. Using a <table> for formating went out in the 90's. Again, you need to use CSS 5. You need to use Prepared Statements 6. You have your closing </form> completely split in the logic from your <form> 7. Having two submit checks is redundant and completely unnecessary 8. You need to use htmlentities on your DB output. 9. You are missing numerous basic html tags. Doc type, body...etc.. 10. It's pretty clear you need to take some time and learn the basics before trying to move forward.
  5. I give up. You cannot even answer a simple question. And no, I don't believe you. My 20+ years as a Software Engineer tell me that whatever you're trying to accomplish, your doing it wrong. Good luck!
  6. You seem to have missed the whole XY Problem thing. I don't care about your attempted solution. What is the overall thing that is to be accomplished. What is the REAL problem you are trying to solve, not how you are trying to solve it. Your code and arrays are completely meaningless to my question.
  7. You are using obsolete insecure code that has been completely removed from Php. You need to be using PDO. Update your code and we will be happy to help. https://phpdelusions.net/pdo
  8. How about telling us what the overall task is so we can avoid the obvious XY problem. (See my signature)
  9. You are using obsolete insecure Mysql code that has been completely removed from Php. Your code is also vulnerable to an SQL Injection Attack. There is no fixing your code. You need to use PDO with prepared statements. https://phpdelusions.net/pdo
  10. I just finished this video. I did not have this problem. Did you find out why you did?
  11. In the currrent version of Laravel Blade has changed a bit from what the tutorial on Layout Files shows at https://laracasts.com/series/laravel-5-from-scratch/episodes/5?autoplay=true Take note of @show in the current version. Took me awhile to figure out there was changes from the video. Video instructions work, but again, not the current way of Blade Templating. Just reference the 5.3 docs here https://laravel.com/docs/5.3/blade
  12. I have not got there yet. Keep in mind, those Laracasts are for an older version of Laravel.
  13. It's been almost 5 years since the Op posted that. Pretty sure he has moved on and so should you. Don't bump threads that are eons old.
  14. I agree with @gizmola. You are not going to be able to re-purpose your existing site and scale it. You need to "blueprint" the whole thing out before you even write a single line of code. Doing an Enterprise level application is a whole lot different than doing a single site/company app. Right now, you don't know what you don't know.
  15. For sure! I was thinking, "Is this all there is to Authentication?". I also am going to git for exactly the same reason. The more I study Laravel, the more I am liking it.
  16. You can use a Mysql View to map the columns.
  17. You said you have been working on the site for the past 7 years. That leads me to believe your code is probably outdated. Are you using Mysqli or PDO? If you're still using the obsolete mysql_* code, then you have even more work to do before you think about implementing your idea. You might want to consider posting your DB schema for us to review. If the DB design is flawed, that would be another thing to take care of before implementing something bigger.
  18. After consulting with the OP offsite, the solution to his XY problem is wget -i file_of_urls.txt
  19. Still not right. You can check it yourself using this online tool http://www.webconfs.com/http-header-check.php
  20. You need to set expose_php = off and then restart Apache.
  21. I have verified you have fixed the Clickjacking. You still need to handle the X-POWERED-BY. I should not even be able to see what version your Php is.
  22. Auth is really simple. There are only a few steps. Do this quick tutorial on Auth and see if it answers your questions. I am still learning this. http://www.hc-kr.com/2016/09/laravel-5-authentication-login-registration-form.html The Laracasts are really good, but were for a bit older version so some things are slightly different such as routes.php not existing in the current version. (Now routes/web.php). I suggest you just go through these videos step by step and then see if you are left with any questions at the end. https://laracasts.com/series/laravel-5-from-scratch
  23. You are using obsolete insecure code that has been completely removed from Php. You need to be using PDO. Update your code and we will be happy to help. https://phpdelusions.net/pdo
×
×
  • 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.