hi guys!

what's the difference between using:
- odbc_connect()
and
- mysql_connect()

and when can i use them?

thanx in advance

    odbc_connect is a generic connection service to a database which offers odbc. odbc is a n open standard to which any database can offer services to systems. For example, microsoft access can be accessed through odbc. In most cases you will have specifically configure a database to offer the service. Being an open standard and one that tries to offer a wide common in terface to databases it is usually a subset of the features of any database. mysql_connect is a specific service to connect only to a mysql database. Using it allows you to use all the available mysql functions within PHP. My advice? unless you are deliberately trying to creat very portable code which needs to have access to lots of (mainstream) database technologies use the specific.

      oh subwayman you really benefited me sooooooooooooooo much......
      thanx a million for your great advice..

        Write a Reply...