Have error messages about file "db.mysql".

Somsak RAKTHAI rsomsak@mor-or.pn.psu.ac.th
Tue, 5 Mar 2002 09:47:35 +0700 (GMT)


---------------------- multipart/mixed attachment
Dear sir,
  I ever use horde-1.2.3, imp-2.2.3, mysql-3.23.35 and
4.0.4pl1 running on FreeBSD-4.2 before and work OK.

  Now I use horde-1.2.3, imp-2.2.3, mysql-3.23.49 and
php-4.1.2 running on FreeBSD-4.5 but when use WebMail
it has messages below.

Warning: mysql_db_query is deprecated; use mysql_select_db() and
mysql_query() instead in /usr/local/apache/htdocs/bunga/lib/db.mysql on
line 86

Warning: mysql_db_query is deprecated; use mysql_select_db() and
mysql_query() instead in /usr/local/apache/htdocs/bunga/lib/db.mysql on
line 53

  I already attach "db.mysql". Please let me know more detail
how to solve this problem.
               thank you very much.
                  regards,
                  Somsak.

---------------------- multipart/mixed attachment
PD9waHANCg0KLyogVGFibGUgU3RydWN0dXJlIGZvciBNeVNRTCB2ZXJzaW9u
Og0KIA0KIFByZWZlcmVuY2VzIFRhYmxlOg0KIGZpZWxkOiAgICAgdHlwZTog
ICAgICAgIGRlc2NyaXB0aW9uOg0KIHVzZXIgICAgICAgdGV4dCAgICAgICAg
IGpvZUBpbWFwLmRvZS5jb20gZm9ybWF0IHVzZXJuYW1lDQogZnVsbG5hbWUg
ICB0ZXh0ICAgICAgICAgJ0pvZSBEb2UnIA0KIHJlcGx5dG8gICAgdGV4dCAg
ICAgICAgIGpvZUBkb2UuY29tIGZvcm1hdA0KIGxhbmcgICAgICAgdmFyY2hh
cigzMCkgIHVzZXJzJ3MgcHJlZmVycmVkIGxhbmd1YWdlIChlbiwgZXMsIC4u
LikNCiBzaWcgICAgICAgIHRleHQgICAgICAgICBzaWduYXR1cmUNCiANCiBB
ZGRyZXNzIFRhYmxlOg0KIGZpZWxkOiAgICAgdHlwZTogICAgICBkZXNjcmlw
dGlvbjoNCiB1c2VyICAgICAgIHRleHQgICAgICAgam9lQGRvZS5jb20gaWRl
bnRpZmllciBvZiB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