AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Dec 6, 2005, 10:51   #1
barev
 
poet's Avatar
 
Join Date: Dec 2005
Location: Yereva, Armenia
Posts: 56
Rep Power: 0
Reputation: 10
Send a message via ICQ to poet Send a message via MSN to poet Send a message via Yahoo to poet Send a message via Skype™ to poet
MySql problem

[OFFTOP] PPL 1rst angam em mtnum ARMKB . Mi qich shat eq bayc meka hay eq . [/OFFTOP]

Tak ancanq bun temayin prob. unem Im Sql i het. Mi qani angam ela senc exel. Asenq code em grum PHP ov Asenq anecdote add anelu hamar add es anum BAZA um erku angam a add linum prichyom mek@ tist mek@ datark. Mi qani angam exela noric em grel stacvela. Dzer mot senc baner exela?
poet is offline   Reply With Quote Quote selected
Old Dec 6, 2005, 11:17   #2
Борец с бояном
 
Sauron's Avatar
 
Join Date: Jun 2003
Location: Yerevan
Posts: 21,423
Rep Power: 10
Reputation: 41
Re: MySql problem

կոդը գրի տենանք ուրա սխալը
Sauron is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 07:44   #3
barev
 
poet's Avatar
 
Join Date: Dec 2005
Location: Yereva, Armenia
Posts: 56
Rep Power: 0
Reputation: 10
Send a message via ICQ to poet Send a message via MSN to poet Send a message via Yahoo to poet Send a message via Skype™ to poet
Re: MySql problem

PHP Code:
if ($action == "add_joke") {
        
$name="".@$_POST["name"]."";
        
$mail="".@$_POST["mail"]."";
        
$joke="".@$_POST["joke"]."";
        
$date Date("d.m.Y");
        
$ip $_SERVER["REMOTE_ADDR"];
        
mysql_query("INSERT into jokeso (name, mail, date, joke, auth, ip) VALUES ('$name','$mail','$date','$joke','1','Admin - $ip')");
        print 
"<meta http-equiv=refresh content=0;URL=index.php?page=admin>"
    } 
poet is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 08:03   #4
Fighter
 
coma's Avatar
 
Join Date: Sep 2002
Location: Armenia
Posts: 270
Rep Power: 6
Reputation: 10
Send a message via ICQ to coma
Re: MySql problem

вместо

print "<meta http-equiv=refresh content=0;URL=index.php?page=admin>";

используй ф-ию header() чтоб послать HTTP header
о ней подробно тут
__________________
coma is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 08:22   #5
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,200
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Ответ: MySql problem

chishta(molodec coma)... du META-n BODY-i mej es dnum....
yete HEADERov dnes, HEADUM kdnes... u petqa vor 1 hat gri postt...
Mesrop is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 10:16   #6
панаехавший
 
Obelix's Avatar
 
Join Date: Jun 2003
Location: форпост
Posts: 4,004
Rep Power: 6
Reputation: 10
Send a message via ICQ to Obelix
Re: MySql problem

poet, եթե կոդն էտքանն ա, տո միակ բանը որ միտքս ա գալիս, էն ա, որ քո էջը մի անգամ եւս կանրվում ա, առանց փոսթ դաթաի (օրինակ եթե ձեռով կանչես):
Սկզբի համար խորհուրդ կտաի այսպիսի
PHP Code:
$name="".@$_POST["name"].""
բաներ չանել, եթե ուզում ես սխալդ գտնես: Համենաին դեպս շատ հավանական է, որ դատարկ արժեքը հենց էստեղից է գալիս:
__________________
Իսկ ԴՈՒ արդեն վաճառե՞լ ես Հայրենիքդ ռուսներին:

My Exchange Rate Monitor | Իմ Արտարժույթի Մոնիտորը

Obelix is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 10:19   #7
панаехавший
 
Obelix's Avatar
 
Join Date: Jun 2003
Location: форпост
Posts: 4,004
Rep Power: 6
Reputation: 10
Send a message via ICQ to Obelix
Re: MySql problem

Coma, mesrop, էտ ի՞նչ կապ ուներ ստեղ:
__________________
Իսկ ԴՈՒ արդեն վաճառե՞լ ես Հայրենիքդ ռուսներին:

My Exchange Rate Monitor | Իմ Արտարժույթի Մոնիտորը

Obelix is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 10:56   #8
Fighter
 
coma's Avatar
 
Join Date: Sep 2002
Location: Armenia
Posts: 270
Rep Power: 6
Reputation: 10
Send a message via ICQ to coma
Re: MySql problem

Quote:
Originally Posted by Obelix
Coma, mesrop, էտ ի՞նչ կապ ուներ ստեղ:
mek@ tist mek@ datark
__________________
coma is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 13:50   #9
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,200
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Ответ: MySql problem

to Obelix:
Quote:
BAZA um erku angam a add linum
inchqan haskaca es toxic, MySQL-in 2 angama zapros linum...
inch@ hnaravora REFRESHIca...
isk qo asac tarberakov, vochte petqa 2 hat zapros tar, ayl uxxaki "TEXT" -znachenyan inq@ tar erku koxker@ mimihat probelnerov " TEXT " - senc... yesim... indz tenca tvum...
Mesrop is offline   Reply With Quote Quote selected
Old Dec 7, 2005, 14:21   #10
панаехавший
 
Obelix's Avatar
 
Join Date: Jun 2003
Location: форпост
Posts: 4,004
Rep Power: 6
Reputation: 10
Send a message via ICQ to Obelix
Re: Ответ: MySql problem

Quote:
Originally Posted by mesrop
to Obelix:
inchqan haskaca es toxic, MySQL-in 2 angama zapros linum...
inch@ hnaravora REFRESHIca...
isk qo asac tarberakov, vochte petqa 2 hat zapros tar, ayl uxxaki "TEXT" -znachenyan inq@ tar erku koxker@ mimihat probelnerov " TEXT " - senc... yesim... indz tenca tvum...
Տղեն ասում ա էրկու հատ ա լինում, մեկը ինքը, մեկը՝ դատարկ: Տվյալ դեպքում դատարկ կլինի, եթե $_POST-ը դատարկ ա: Հա կարող ա ռեֆռեշից ա, եթե իհարկե նույն էջն ա էդդ անում, բայց դե ես ինչ իմանամ էսքան կոդից:
__________________
Իսկ ԴՈՒ արդեն վաճառե՞լ ես Հայրենիքդ ռուսներին:

My Exchange Rate Monitor | Իմ Արտարժույթի Մոնիտորը

Obelix is offline   Reply With Quote Quote selected
Old Dec 18, 2005, 09:00   #11
Вечный Студент
 
Leo's Avatar
 
Join Date: Oct 2003
Location: Armenia
Posts: 69
Rep Power: 0
Reputation: 10
Send a message via ICQ to Leo
Re: MySql problem

Ete index.php?page=admin mtneluc datark row chi avelacnum,
es toxi tex'
print "<meta http-equiv=refresh content=0;URL=index.php?page=admin>";
gri:
header("Location: index.php?page=admin");
Isk ete avelacnum a, kodt sxal a grac.
Leo is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial-up yahoo-mail access problem Tropical General 1 Nov 12, 2005 21:22
utf-8 problem Michael Web Development 4 Oct 25, 2005 09:28
MySQL Unicode problem with armenian Aram Ghazanchyan Web Development 6 May 12, 2005 11:11
MYSQL i problem NIMDA Software 1 Oct 5, 2002 05:03
php and mySQL search problem!!! Timewind Web Development 1 Sep 7, 2002 01:22


All times are GMT. The time now is 03:50.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link