I'm trying to follow this tutorial: http://ift.tt/1djC9Cw to create login for my android app and I am stuck on step 2. I clicked on the SQL section in phpmyadmin, and pasted the code:
create database android_api /** Creating Database **/
use android_api /** Selecting Database **/
create table users(
uid int(11) primary key auto_increment,
unique_id varchar(23) not null unique,
name varchar(50) not null,
email varchar(100) not null unique,
encrypted_password varchar(80) not null,
salt varchar(10) not null,
created_at datetime,
updated_at datetime null
); /** Creating Users Table **/
and it says there is a syntax error near 'use android_api /** Selecting Database **/
create table users( uid int(1' at line 3
I've never worked with php so I don't know whats going on. Thanks for your help!
Aucun commentaire:
Enregistrer un commentaire