# Create MySql table not working

**URL:** <https://forum.kirupa.com/t/create-mysql-table-not-working/127155>\
**Category:** Uncategorized\
**Created:** [October 31, 2004, 1:20am UTC](https://forum.kirupa.com/t/create-mysql-table-not-working/127155 "2004-10-31T01:20:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boombanguk](https://avatars.discourse-cdn.com/v4/letter/b/22d042/32.png) [@boombanguk](https://forum.kirupa.com/u/boombanguk)\
**Post date:** [October 31, 2004, 1:20am UTC](https://forum.kirupa.com/t/create-mysql-table-not-working/127155/1 "2004-10-31T01:20:21Z")

</div>

[font=verdana, arial, helvetica][size=2]hi,

I’m using myphpadmin to create a table in my MySql database (following the tutorial on this site), like this

CREATE TABLE `tableauth` (

`username` VARCHAR( 20 ) UNSIGNED ZEROFILL DEFAULT ‘0000’ NOT NULL AUTO\_INCREMENT ,  
`userpassword` VARCHAR( 20 ) UNSIGNED ZEROFILL DEFAULT ‘0000’ NOT NULL AUTO\_INCREMENT ,  
PRIMARY KEY ( `username` , `userpassword` )  
)

but myphpadmin keeps giving me the error…

You have an error in your SQL syntax near ‘UNSIGNED ZEROFILL DEFAULT ‘0000’ NOT NULL AUTO\_INCREMENT, `userpassword` VARCHAR’ at line 1

any ideas??

thanks

boombanguk[/size][/font]
