Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'tomnoblescom.ipagemysql.com' (111) in /home/tmnobles/public_html/Subject_Directory/Visual_Basic/comments/config.php on line 15
Could not connect to MySQL
| site search by freefind |
The login form I made as a simple login - Username, Password and server status. It consists of three labels two text boxes and two buttons, one of which isn't necessary at all, the Refresh button. Its function is to clear the textboxes, place focus on txtUsername and connect again. I placed it to provide a little more balance to the form and it allowed me to test further without restarting debug **.
The first label is for displaying the status of the server connection. Its properties are set as (default if not listed);
Second label;
Third Label;
First (upper) TextBox, for User Name input;
Second TextBox, for Password input;
Login Button;
Refresh Button;
The Login button submits the Username and Password as part of the SELECT query to the MySql database. The Refresh button clears the textboxes, gives focus to the Username TextBox and calls Connect() to show a status change. This button and code can be eliminated completely without affecting the purpose of this article.
* Used to build query string and taken from DB table shown in Part III
** Allows testing different usernames and passwords without restarting debug.