Jump to content

gw1500se

Members
  • Posts

    1,029
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by gw1500se

  1. The error is pretty obvious. There is no database named 'Ir' or the parameter Config::get (whatever that is) is not doing what you think. You can see what databases exist by opening a MySQL connection from the command line and entering 'show databases'.
  2. I think you are confusing what PHP is. It is server side only. PHP does not execute on the client side (user machine). Client side code is javascript. There are some javascript port scan scripts around, just search for javascript port scanner.
  3. This is really a MySQL question. Your stored procedure has no IN/OUT statements. Perhaps this will help. Search engines are your friend.
  4. I don't understand your code at all. You're putting the rows generation outside of the loop so only 1 row gets created. Plus you are putting your form inside the table. The HTML just doesn't make sense. I suggest you read up on how to create tables in HTML. As for your 2nd question, you create a script that does the connection as a function call and include functions that do your standard queries. Then add that script with require and call those functions from your main script.
  5. There is your answer. Either you are not adding a value for email in your insert or there is a problem with your schema.
  6. No, you are the programmer. If you want someone to write the program for you there is a form to hire someone.
  7. Obviously the query is failing. You need to echo mysqli_error to determine why.
  8. You need to figure out why $error is not being set. As a workaround initialize $error to something at the beginning of your code. In any case that has nothing to do with your database not being updated. Which problem are you trying to solve?
  9. I suggest you learn to read. I already told you what is wrong. Did you bother to look at the formatted code you posted and the colors? It is very obvious if you just look. That is the point of the the formatter.
  10. Because it is not executing due to the syntax errors.
  11. I edited my previous post after you replied. Please read.
  12. ??? Now that you have used the code icon you can see there are syntax errors. Your <?PHP and ?> tags are messed up/missing. There are other glaring flaws in your code. Never ever put user data directly into a database. You are wide open to injection attacks. Use prepared statements and validate the data. I am guessing that you are not validating anything on the web page before submitting it and I see nothing that validates your data in your PHP script.
  13. First please use the code icon (<>) and choose PHP. It makes your code much easier to read. Which is line 118? Did you echo all your variables to make sure they contain what you expect?
  14. Javascript screen.height and screen.width will give you the measurements regardless of device type. From that you can calculate how you want to distribute the screen real estate. Pass that info back to PHP via Ajax and set up the output as desired.
  15. I'm not sure what you are asking. If I understand, simply convert the integer to a string (strval) then test the first character of that strnig and take the appropriate action.
  16. You can either set_time_limit in the script which applies to only that script or max_execution_time in your php.ini file which will apply to all scripts.
  17. First please use the code icon (<>) for your PHP and select PHP or HTML for that code. It makes your code easier to read. Did you echo $value1 to make sure it is what you expect? As a guess, since you don't show that code, I suspect the problem is with the array $characters. Did you var_dump that to make sure it is correct?
  18. If you are getting a blank page then that means neither 'echo' is working and the code may be failing somewhere else. However, if the 'fputs' is outputting invalid HTML then that may also appear as a blank page. When that blank page is up, show the source to see if anything is there at all.
  19. What is the error you are getting? Is error reporting enabled? Did you output the data to make sure it is what you expect?
  20. You are mixing POST and GET. If you want to pass the variables in the URL use GET. You need to output the variables to the form to a field not in the URL. As Barand said it should be in a hidden field if you don't want it displayed on the page.
  21. Try posting your code so we can see what you are talking about. Be sure to use the code icon (<>) and select PHP.
  22. Minor point. I think the check will catch negative integers since it is cast to a string but the error should say 'Please provide a positive integer".
  23. Converting it to date format is then relatively simple.
  24. I recommend you convert those to date format. Not a difficult task that needs to be done only once. It will make not only this problem go away but any future code that needs to use dates will be easier as well.
×
×
  • 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.