PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Every time I submit a form to the following page (editusers2.php) I get... nothing. No error, no problems. Just no results. Is there something wrong with the code?
Is this the full script? If so where where you getting the variables from? Where does $new_user_name get set? Is it in the POST array? Add this before the query, and the other variables, and see what you get.
Also, the best way to debug an SQL statement is to print it on the browser, copy it and run it directly on MYSQL client editor (Right clicking the mouse button will paste it on MySQL client under windows). It will give you a better error message.
deffinetly should have seen that. when listing values for a set directive, use the comma, not 'AND'. AND is for conditional use within a WHERE clause and other places that support it.
f1nutter wrote:
Is this the full script? If so where where you getting the variables from? Where does $new_user_name get set? Is it in the POST array? Add this before the query, and the other variables, and see what you get.