Loading ...
Sorry, an error occurred while loading the content.

Re: php mysql Connectivity !

Expand Messages
  • Md. Tahmidul Islam
    Mr. palashist, ...
    Message 1 of 4 , Dec 4, 2005
    • 0 Attachment
      Mr. palashist,

      you can start with:
      ----------------------------------------
      <?

      function connectMysql()
      {
      $host == "localhost"; // YOUR HOST
      $user == "yourusername"; // USER ID
      $pass == "youruserpass"; // USER PASSWORD
      $db_name == "testDB"; // DB NAME

      /* for connecting to you mysql DB using authentication */
      $dlink == mysql_connect($host, $user, $pass);

      /* for selecting Database */
      mysql_select_db($db_name, $dlink);
      }

      ....
      ....
      /* this function will help to connect to the Mysql */
      connectMysql();
      ....
      ....
      ?>
      ----------------------------------------

      OR

      See this link : http://www.phpnoise.com/tutorials/15/1



      Thanks
      Tahmid Munaz

      http://phpxperts.com






      --- In phpexperts@yahoogroups.com, "palashist" <palashist@y...> wrote:
      >
      >
      > Dear all,
      >
      > i am a new user in php. i need php mysql Connectivity in linux.
      > plz help me in a simple way.
      >
      > palash
      > palashist@y...
      >
    • lamy_ici
      heres a link for PHP-MySQL tutorial, from installation to php mysql connection script http://www.webmonkey.com/99/21/index2a.html
      Message 2 of 4 , Dec 5, 2005
      • 0 Attachment
        heres a link for PHP-MySQL tutorial, from installation to php mysql
        connection script

        http://www.webmonkey.com/99/21/index2a.html

        --- In phpexperts@yahoogroups.com, "palashist" <palashist@y...> wrote:
        >
        >
        > Dear all,
        >
        > i am a new user in php. i need php mysql Connectivity in linux.
        > plz help me in a simple way.
        >
        > palash
        > palashist@y...
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.