Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 16.05.2003, 15:11   #1
Авик
 
CyberJoe's Avatar
 
Join Date: 07 2002
Location: Yerevan
Age: 30
Posts: 1,348
Downloads: 2
Uploads: 0
Reputation: 9 | 0
Default insert in mysql

Буду краток:
это работает:mysql_query("INSERT INTO T(NICK,LOGIN,PASSWORD) VALUES(\"AAA\",\"BBB\",\"CCC\")");
А это нет:mysql_query("INSERT INTO T(NICK,LOGIN,PASSWORD) VALUES($Nick,$Login,$password)");
Внимание Вопрос: Почему?????????
Reply With Quote
Old 16.05.2003, 15:55   #2
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Downloads: 0
Uploads: 0
Reputation: 26 | 4
Default Re: insert in mysql

Quote:
Originally posted by CyberJoe
Буду краток:
это работает:mysql_query("INSERT INTO T(NICK,LOGIN,PASSWORD) VALUES(\"AAA\",\"BBB\",\"CCC\")");
А это нет:mysql_query("INSERT INTO T(NICK,LOGIN,PASSWORD) VALUES($Nick,$Login,$password)");
Внимание Вопрос: Почему?????????
poprobuj:
mysql_query("INSERT INTO T(NICK,LOGIN,PASSWORD) VALUES(\"$Nick\",\"$Login\",\"$password\")");
polya u tebya textovie poetomu skoree vsego peremenie bez kovi4ek ne vosprinimaet...
Reply With Quote
Old 16.05.2003, 16:38   #3
Авик
 
CyberJoe's Avatar
 
Join Date: 07 2002
Location: Yerevan
Age: 30
Posts: 1,348
Downloads: 2
Uploads: 0
Reputation: 9 | 0
Default Re: Re: insert in mysql

shas poprobuju spasibo dumaju srabotaet!
Reply With Quote
Old 16.05.2003, 17:49   #4
ppz kkz
 
Davit's Avatar
 
Join Date: 03 2003
Location: at home
Age: 33
Posts: 111
Downloads: 0
Uploads: 0
Reputation: 19 | 3
Default

ili poprobuj tak:

mysql_query("INSERT INTO T(NICK,LOGIN,PASSWORD) VALUES('$Nick','$Login','$password')");

odno i toje
Reply With Quote
Old 17.05.2003, 07:18   #5
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default

senc a ashxatum

mysql_query("insert into users (username, password, birthday) values ('$username', '$pass', '$birthday')");
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 07:59.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.