![](/images/lev_menu.jpg)
![Новости](/images/a_news.jpg)
![Документация](/images/a_documents.jpg)
![Download](/images/a_download.jpg)
![Webboard](/images/a_webboard.jpg)
![Поиск](/images/a_searh.jpg)
![FAQ/ЧаВо](/images/a_faq.gif)
![Обратная связь](/images/a_mail.jpg)
|
MySQL.RU - Webboard
Вернуться
Помогите новичку. (Евгений) 21/12/2002 - 13:29:40
Re: Помогите новичку. (walrus) 21/12/2002 - 19:31:30
Re: Помогите новичку. (Алексей) 22/12/2002 - 00:47:41
Re: Помогите новичку. (Marat_L) 23/12/2002 - 09:02:52
Re: Помогите новичку. (walrus) 25/12/2002 - 10:51:26
> Original message text:
> From: Евгений - 21/12/2002 - 13:29:40
> Subject:Помогите новичку.
> -----------------
> <?
> $host="localhost";
> $login="root";
> $password="000000";
> $dbname="strateg";
> $link = mysql_connect("$host", "$login", "$password");
> $a=mysql_select_db("$dbname");
>
> $a = "CREATE TABLE preview (
> id int not null auto_increment primary key,
> text longtext not null,
> letter int(1) not null,
> pub tinytext not null,
> dev tinytext not null,
> sys tinytext not null,
> info text not null,
> genre varchar(15) not null
> );";
>
> $b = "create table interview (
> id int not null auto_increment primary key,
> text longtext not null,
> letter int(1) not null,
> pub tinytext not null,
> dev tinytext not null,
> sys tinytext not null,
> info text not null,
> genre varchar(15) not null
> );";
>
> $c= "create table news (
> id int not null auto_increment primary key,
> name varchar(10) not null,
> subject varchar(10) not null,
> text text not null,
> year varchar(4) not null,
> month varchar(10) not null,
> day varchar(10) not null,
> date varchar(50) not null);
> ";
>
> $u= "create table review (
> id int not null auto_increment primary key,
> text longtext not null,
> letter int(1) not null,
> pub tinytext not null,
> dev tinytext not null,
> sys tinytext not null,
> info text not null,
> genre varchar(15) not null);
> ";
>
>
>
> $m= "create table projects (
> id int not null auto_increment primary key,
> text longtext not null,
> letter int(1) not null,
> pub tinytext not null,
> dev tinytext not null,
> sys tinytext not null,
> info text not null,
> rating int not null,
> genre varchar(15) not null);
> ";
> ?>
>
> Подскажите, что не так?
>
From: Алексей - 22/12/2002 - 00:47:41
Subject:Помогите новичку.
-----------------
> info text not null,
> rating int not null,
> genre varchar(15) not null);
По-моему не всегда проходит ";" (точка с запятой) после запроса
[Это сообщение - спам!]
Последние сообщения из форума
Уважаемые посетители форума MySQL.RU!
Убедительная просьба, прежде чем задавать свой вопрос в этом форуме, обратите внимание на разделы:
- ответы на наиболее часто задаваемые вопросы - FAQ
- раздел документация
- раздел поиск по сообщениям форума и документации
Также, старайтесь наиболее подробно указывать свою ситуацию (версию операционной системы, версию MySQL,
версию программного обеспечения, по которому возникает вопрос, текст возникающих ошибок, и др.)
Помните, чем конкретнее Вы опишете ситуацию, тем больше шансов получить реальную помощь.
6002
|
|