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!
this code works pefectly fine on my localhost but when i upload it every thing seems to go wrong. It seems to have a lot of problems with this line of code "mysql_fetch_array ($result, MYSQL_NUM);". Can any one help?
And i have changed the database details.
I got this after I typed in the Correct username and password.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/alan2011/public_html/phppro/admincp/index.php on line 27
relying on the submit button can bite you in the butt. Some browsers always send it, some only when the button is clicked. Look for a field that's always sent, or better yet, check $_SERVER['REQUEST_METHOD']
session_register() is not to be used when you are working with $_SESSION, ever.
The error you are getting is referring to the query string being bad in some way shape or form. If you follow what jshpro2 said about mysql_error() and the @ that will lead you to what the error actually is.