Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


benanamen last won the day on October 28

benanamen had the most liked content!

Community Reputation

112 Excellent


About benanamen

  • Rank
    Master Coder

Contact Methods

  • Website URL
  • Yahoo

Profile Information

  • Gender
    Not Telling
  • Interests
    Email me at phpfreaks@galaxyinternet.us

Recent Profile Visitors

4,638 profile views
  1. You will need a session id and a WHERE clause in your query.
  2. For starters, you don't need to check if the session has been started. Just set it and be done with it. You also need to kill the script after a header redirect and don't create variables for nothing.
  3. The first thing you do is issue a redirect and kill the script. How do you expect it to do anything after that?
  4. OP, I would really suggest you actually learn how to code instead of using a WYSIWYG. The output is absolutely horrendous.
  5. What should be suggested is that you stop using dangerous obsolete mysql code that has been completely removed from PHP and was warned about for well over ten years and to stop running a php version that is hundreds of releases behind and reached end of life long ago. Toss that code in the trash. Every bit of it is bad. You need to use PDO with Prepared Statements. This tutorial will get you going. https://phpdelusions.net/pdo
  6. OP, you were handed a complete properly coded example on the other forum by a gracious expert. Why are you still messing around with this bad code?
  7. It means you posted this in multiple forums and someone already took the time in another forum to answer you so we are not going to waste more experts time answering something that has already been answered.
  8. OP was given answer in another forum.
  9. Exposing your PC to the entire world is a really bad idea. The various wamps are intended for Development, not Production.
  10. What guarantee do you have that it was actually submitted by the users form and the users date picker? There are several ways to make a Post Request without using the users form. Bottom line, it is user supplied data and you well understand to NEVER trust user supplied data. The one case where you can safely get away with a variable in the query is if the date (or whatever) comes directly from the code, but then then that isn't user supplied data is it? But why do it? Consistency is always a good thing. No you didn't. Read the manual and see what you did wrong.
  11. The OP created the column as datetime and is trying to insert a text string. $date_col = "test";//
  12. If you just leave a closing php tag hanging around of course it will break. Why would you remove proper code?
  13. What is the code from blog-approval.php? The tester is not displaying the error you posted. It is displaying a 1 as it should. If you echo'ed the line in your tester you would see a hash. Also, phpinfo() does not require echo.
  • 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.