Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


gw1500se last won the day on November 1

gw1500se had the most liked content!

Community Reputation

18 Neutral

About gw1500se

  • Rank
    Advanced Member

Profile Information

  • Location
    Georgia, USA

Contact Methods

  • Skype

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. First please use the code icon (<>) to embed it in a post and choose the correct code format. It makes your code much easier to read. Second, there are several ways to accomplish what you want. Probably the most common way is to include the javascript in the PHP page you want executed. Run the javascript and return true or false then test that in the PHP code to determine if the data meets the requirements to run the script. If not then output an error or something, otherwise run the code. If you really want to execute a PHP script from javascript then you need to use Ajax. Just search for "PHP Ajax" and you will find plenty of references with examples.
  2. Use the date function to convert it to the needed formatted string.
  3. Convert the date string to a time data type then compare: if(strtotime($test_date) < strtotime("now")) { $new_date=strtotime(&test_date. "+ 1 day"); } // format $new_date however you need
  4. If I understand correctly, you need to see if the hour has gone past and if so increment the date.
  5. Then it is not a max packet size issue. Post some code so we can see what you are talking about.
  6. Did you check for errors? If you exceed the max packet size you should see error 1153. If you need to change it, set 'max_allowed_packet' in the ini file.
  7. Reading the manual will help a lot.
  8. Sorry by my clairvoyance is not working today. Perhaps if you posted some code it might help. Be sure to use the code icon (<>) and select PHP.
  9. So what is your question or what is the error?
  10. I think the OPs small matter goes a bit deeper. Probably needs to do a lot of learning of HTML and PHP.
  11. PHP keeps the original data type unless you specifically change it. Thus it will always be data type float and will output 0.0. If you want it to be blank then add a check to see if it is 0, if it is then do not output the variable. Because you didn't use the proper code icon (<>) I am not going to wade through that difficult to read code but wherever you are outputting that variable, add the 'if' block.
  12. I failed to mention that if you have admin privileges you can create rewrite rules that protect the directory containing member only pages. But that is not a pure PHP solution but rather an httpd configuration solution.
  13. Use sessions. Each page will need to check a session variable to determine if a user is logged in. If so deliver the page, if not deliver the login page or an error.
  14. Use var_dump() to see what $_POST contains: echo "<pre>"; var_dump($_POST); echo "</pre>"; You can find the variable you want from that.
  • 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.