$result = MYSQL_QUERY("SELECT * from members WHERE loginname='$loginname'and password='$password'")
or die ("Name and password not found or not matched");
mysql_connect('mysql10.streamline.net',$username,$password);
@mysql_select_db($database) or die("Unable to select database");
$query="CREATE TABLE members(
id INT NOT NULL AUTO_INCREMENT,
loginname VARCHAR(20) NOT NULL,
createdate DATE NOT NULL,
password CHAR(255) NOT NULL,
name VARCHAR(40),
age INT(2),
location VARCHAR(40),
description CHAR(255),
email VARCHAR(40) NOT NULL,
userpage VARCHAR
blogs VARCHAR
profile VARCHAR
warn INT
I know it's a lot but i'm desperate for help. I will be forever grateful to whoever helps me.
-Thanks
Oh and may i also add that their is a field for the id and create date in the registration form. It's not because i'm stupid but because i can't get them to work automatically
Last edited by staticfire; 05-09-07 at 05:03 PM.
Reason: I needed to point something out.
oops i think i used the wrong highlighters. Sorry this is my first post.
oh yes i should have done that. Heres the error:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in e:\domains\s\staticfire.co.uk\user\htdocs\check_lo gin.php on line 29
Last edited by Christian; 05-09-07 at 05:17 PM.
Reason: Merged