before all !! SORRY FOR MY BROKEN ENLISH .....
hi everybody.
i have a really strange problem with WAMP5.let me explain it one one. for example i am going to write a code which take registration information from you and send it to database. (by the way i am using WAMP in my local computer).
<?php
mysql_connect("localhost", "Blue", "geek"
or die (mysql_error());
mysql_select_db("test"
or die(mysql_error());
mysql_query("INSERT INTO example
(name, surename,user_name,password) VALUES('$name', $surename','$user_name','$password') "
or die(mysql_error());
?>
As you see, there is no problem with this code righT ?.so when i click to "SEND" button (actually i save this code in a text file called reg.php and call it by another html file registration .html and my form action will run this code. any way. ). assume that i typed some information such as, name= david, sure name =web, user name = Geek, password =1234. so when i click the SEND button , it sends the data .and also redirect me to my success page.so the problem is that when i see at my database in phpmyadmin for "test"-->"example ", rows are created in table for my datas (david, web,Geek,1234) but the letters r not writen. inside the table is empty. can anybody tell me what is the problem exactly before i lose my mind. i really want to know this problem. thanks in advance .
NOTE : i tried connecting to server and database seperately, it connects. and also i can take from database by "SELECT * FROM example";
Post Edited (09-15-06 23:46)