Log in form help

I’m attempting to create a secure log in form for my website and I’m following these steps: Steps

  1. Create table “members” in database “test”.
  2. Create file main_login.php.
  3. Create file checklogin.php.
  4. Create file login_success.php.
  5. Create file logout.

The members table created fine, but I get an error when trying to create the main_login.php

[php]

Member Login
Username :
Password :
   
[/php]

I get this error: Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 267
STR: ><
SQL:

Member Login
Username :
Password :
 

SQL query:

Member Login
Username :
Password :
 

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘<table width=“300” border=“0” align=“center” cellpadding=“0” cellspacing=“1” bgc’ at line 1

I’m using MySQL Ver 5.1.56
PHP Ver 5.2.17

Can anyone help? I don’t have a clue what it is.
I’m

Sponsor our Newsletter | Privacy Policy | Terms of Service