Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2007, 09:13 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Inserting rows into the user table

PHP Code:
INSERT INTO `user` ADD `row_i_wanna_add` INT( 11 ) NOT NULL ;
INSERT INTO `user` ADD `row_i_wanna_add` INT( 11 ) NOT NULL ; 
PHP Code:
An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: 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 ';



INSERT INTO `user` ADD `row_i_wanna_add` INT( 11 ) NOT NULL ;
INSERT INTO `use' at line 1 
What am i doing wrong? =]
Reply With Quote
  #2  
Old 07-08-2007, 09:17 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[sql]ALTER TABLE `user`
ADD
(
`row_i_wanna_add` INT( 11 ) NOT NULL,
`row_i_wanna_add` INT( 11 ) NOT NULL
)[/sql]
Reply With Quote
  #3  
Old 07-08-2007, 09:19 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ooh thankies =D
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.9.0
Copyright ©2000 - 2017, vBulletin Solutions Inc.