Who can solve "Character set error"

wxdqz

New Member
I compile PHP-4.0.4pl1, Apache-1.3.17 and MySQL-3.23.33, but when I
test to connect with old
scripts (work well on PHP-4.0.0, Apache-1.3.12 and MySQL-3.22.32) it show that can\'t connect MySQL.
Bellow is my code:

1 <?
2 //detail
3 phpinfo();
4
5 //show version
6 phpversion();
7
8 //test connect database
9 $link = mysql_connect(\\\"localhost\\\",\\\"guest\\\",\\\"guest\\\");
.....
Although I recmpile by --with-charset=tis620 but it still error.It's work well only with telnet to linux and run with mysql -uroot -ppassword
 
Back
Top