Jump to content

gw1500se

Members
  • Posts

    1,033
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Why in the world would you store it that way in the first place? Thought it may work now, down the road who knows what kind of problems this will present. Now is the time to fix the schema so it makes sense.
  2. You can't just copy code and necessarily expect it to work. You need to understand the code presented and then implement your own.
  3. Are you logging in using the same user (root)? Also is the PHP script running on the same server as MySQL (localhost)?
  4. Perhaps not so obvious. The error message indicates that the database it is trying to open is 'lr'. If the global was returning something different, it would not show up that way in the error message. That database must not exist at least in the way it is being referenced. Again a 'show databases' would verify that.
  5. 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'.
  6. 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.
  7. This is really a MySQL question. Your stored procedure has no IN/OUT statements. Perhaps this will help. Search engines are your friend.
  8. 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.
  9. There is your answer. Either you are not adding a value for email in your insert or there is a problem with your schema.
  10. No, you are the programmer. If you want someone to write the program for you there is a form to hire someone.
  11. Obviously the query is failing. You need to echo mysqli_error to determine why.
  12. 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?
  13. 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.
  14. Because it is not executing due to the syntax errors.
  15. I edited my previous post after you replied. Please read.
  16. ??? 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.
  17. What about my questions?
  18. 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?
  19. 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.
  20. 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.
  21. 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.
  22. 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?
  23. 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.
  24. What is the error you are getting? Is error reporting enabled? Did you output the data to make sure it is what you expect?
  25. 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.
×
×
  • 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.