i tried to create a new table using phpmyadmin, but it gave me an error -
can anybody see what the problem is, and the correct code i could put into
the SQL section (kind of like the mysql command line, but in a php page).
TIA.
SQL-query :
CREATE TABLE `faq` (
`id` INT( 10 ) DEFAULT '0' NOT NULL AUTO_INCREMENT ,
`question` LONGBLOB( 1000 ) DEFAULT 'question' NOT NULL ,
`answer` LONGBLOB( 5000 ) DEFAULT 'answer' NOT NULL ,
PRIMARY KEY ( `id` ) ,
UNIQUE (
`question`
)
) COMMENT = 'table of frequently asked questions for FAQ page'
MySQL said:
#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
'(1000) DEFAULT 'question' NOT NULL, `answer` LONGBLOB(5000) DEF 2 3293
Matthew Robinson <ma*************@hotmail.com> wrote in message news:<pa***************************@hotmail.com>.. . i tried to create a new table using phpmyadmin, but it gave me an error - can anybody see what the problem is, and the correct code i could put into the SQL section (kind of like the mysql command line, but in a php page). TIA.
SQL-query :
CREATE TABLE `faq` ( `id` INT( 10 ) DEFAULT '0' NOT NULL AUTO_INCREMENT , `question` LONGBLOB( 1000 ) DEFAULT 'question' NOT NULL , `answer` LONGBLOB( 5000 ) DEFAULT 'answer' NOT NULL , PRIMARY KEY ( `id` ) , UNIQUE ( `question` ) ) COMMENT = 'table of frequently asked questions for FAQ page'
MySQL said:
#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 '(1000) DEFAULT 'question' NOT NULL, `answer` LONGBLOB(5000) DEF
MySQL bitfield data types don't take size
or allow default value specifications.
Like:
`question` LONGBLOB NOT NULL ,
`answer` LONGBLOB NOT NULL ,
From memory, don't put a length attribute on a LONGBLOB.
Peter.
"Matthew Robinson" <ma*************@hotmail.com> wrote in message
news:pa***************************@hotmail.com... i tried to create a new table using phpmyadmin, but it gave me an error - can anybody see what the problem is, and the correct code i could put into the SQL section (kind of like the mysql command line, but in a php page). TIA.
SQL-query :
CREATE TABLE `faq` ( `id` INT( 10 ) DEFAULT '0' NOT NULL AUTO_INCREMENT , `question` LONGBLOB( 1000 ) DEFAULT 'question' NOT NULL , `answer` LONGBLOB( 5000 ) DEFAULT 'answer' NOT NULL , PRIMARY KEY ( `id` ) , UNIQUE ( `question` ) ) COMMENT = 'table of frequently asked questions for FAQ page'
MySQL said:
#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 '(1000) DEFAULT 'question' NOT NULL, `answer` LONGBLOB(5000) DEF This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Somerset Bob |
last post by:
I've posted my query at the phpbb forum, where I got half an answer and then
no more. I posted it again at another phpbb forum, where I got half an
answer and no more. I posted it in alt.php, where...
|
by: Somerset Bob |
last post by:
I've posted my query at the phpbb forum, where I got half an answer and then
no more. I posted it again at another phpbb forum, where I got half an
answer and no more. I posted it in alt.php, where...
|
by: Somerset Bob |
last post by:
I've got pagination errors in a phpBB board. Some forums are showing "page 1
of 0". Previous enquiries both here and at the phpBB forum have given me
half-answers, the latest of which contained...
|
by: Ryan Schefke |
last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
..I just sent this out to the win32 distribution list but no one has...
|
by: Gnarlodious |
last post by:
This is some odd behavior, I'm hoping someone can explain.
I have a TiBook running 4.0.17 and phpMyAdmin 2.5.5-pl1 where MySQL hostname
is configured as "Gnarlodious-TiBook" (machinename).
So...
| |
by: cofused |
last post by:
Hi,
I have set up the Xitami server (2.5c2) and PHP (5.0.5) on my Win98 system
without any problem.
I am trying to add PhpMyAdmin. When I try to load
http://home/phpmyadmin
which loads...
|
by: dude |
last post by:
I'm getting a message Directory Listing Denied, This Virtual Directory
does not allow contents to be listed.
I'm using WAMP5 and IIS, and the 'error' is displayed when i try to
access...
|
by: jjroger |
last post by:
Hi
I am trying to install phpmyadmin on server, I have password protected the directory. Try to enter the directory before even upload the phpmyadmin got the following massage.
Fatal error:...
|
by: Jonathan Sachs |
last post by:
I just tried to install phpMyAdmin on my system, and I can't get it to
work. When I tried to run the setup procedure (setup.php) I got the
following message:
Fatal error: session_start() :...
|
by: seanh |
last post by:
Hi all,
I need some advice regarding phpmyadmin, I installed phpmyadmin directory in the htdocs but when I go to my http://mysite.com/phpmyadmin I get a 500 internal error. I checked the files...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |