mysql_pconnect() not defined

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yun Guan

    mysql_pconnect() not defined

    Hello folks,

    In my php scripts, those mysql functions, like mysql_pconnect( ) and
    mysql_connect() are said to be undefined. What do I miss here?

    Thanks.

    --
    Allen Guan
    281-489-2314


  • Veers

    #2
    Re: mysql_pconnect( ) not defined

    Yun Guan wrote:[color=blue]
    > Hello folks,
    >
    > In my php scripts, those mysql functions, like mysql_pconnect( ) and
    > mysql_connect() are said to be undefined. What do I miss here?
    >
    > Thanks.
    >
    > --
    > Allen Guan
    > 281-489-2314
    >
    >[/color]
    Hi,
    I think you've compiled php without mysql support.

    Greetings,
    Jonas

    Comment

    • Tony Clarke

      #3
      Re: mysql_pconnect( ) not defined

      if you put this in a file and save it you can see if php has loaded the
      mySQL modules. You should have no probs using mysql_connect()

      <?php
      phpinfo();
      ?>


      "Veers" <jowag89@gmx.ch > wrote in message
      news:cn2r83$5q2 $1@newshispeed. ch...[color=blue]
      > Yun Guan wrote:[color=green]
      > > Hello folks,
      > >
      > > In my php scripts, those mysql functions, like mysql_pconnect( ) and
      > > mysql_connect() are said to be undefined. What do I miss here?
      > >
      > > Thanks.
      > >
      > > --
      > > Allen Guan
      > > 281-489-2314
      > >
      > >[/color]
      > Hi,
      > I think you've compiled php without mysql support.
      >
      > Greetings,
      > Jonas[/color]


      Comment

      • Allen Guan

        #4
        Re: mysql_pconnect( ) not defined

        I ran phpinfo(). The only thing about Mysql is under item dbx where MYSQL is
        listed as one of the supported databases. Does that mean mysql module is
        loaded?

        Yun Guan


        "Tony Clarke" <clarket@eircom .net> wrote in message
        news:8s8ld.4171 6$Z14.16707@new s.indigo.ie...[color=blue]
        > if you put this in a file and save it you can see if php has loaded the
        > mySQL modules. You should have no probs using mysql_connect()
        >
        > <?php
        > phpinfo();
        > ?>
        >
        >
        > "Veers" <jowag89@gmx.ch > wrote in message
        > news:cn2r83$5q2 $1@newshispeed. ch...[color=green]
        >> Yun Guan wrote:[color=darkred]
        >> > Hello folks,
        >> >
        >> > In my php scripts, those mysql functions, like mysql_pconnect( ) and
        >> > mysql_connect() are said to be undefined. What do I miss here?
        >> >
        >> > Thanks.
        >> >
        >> > --
        >> > Allen Guan
        >> > 281-489-2314
        >> >
        >> >[/color]
        >> Hi,
        >> I think you've compiled php without mysql support.
        >>
        >> Greetings,
        >> Jonas[/color]
        >
        >[/color]


        Comment

        • Allen Guan

          #5
          Re: mysql_pconnect( ) not defined

          My PHP came with the Linux 9. MYSQL was installed after PHP. Should I
          reinstall PHP?

          Allen Guan



          "Allen Guan" <yguan@houston. rr.com> wrote in message
          news:ZDeld.2012 $Zr3.909@fe1.te xas.rr.com...[color=blue]
          >I ran phpinfo(). The only thing about Mysql is under item dbx where MYSQL
          >is listed as one of the supported databases. Does that mean mysql module is
          >loaded?
          >
          > Yun Guan
          >
          >
          > "Tony Clarke" <clarket@eircom .net> wrote in message
          > news:8s8ld.4171 6$Z14.16707@new s.indigo.ie...[color=green]
          >> if you put this in a file and save it you can see if php has loaded the
          >> mySQL modules. You should have no probs using mysql_connect()
          >>
          >> <?php
          >> phpinfo();
          >> ?>
          >>
          >>
          >> "Veers" <jowag89@gmx.ch > wrote in message
          >> news:cn2r83$5q2 $1@newshispeed. ch...[color=darkred]
          >>> Yun Guan wrote:
          >>> > Hello folks,
          >>> >
          >>> > In my php scripts, those mysql functions, like mysql_pconnect( ) and
          >>> > mysql_connect() are said to be undefined. What do I miss here?
          >>> >
          >>> > Thanks.
          >>> >
          >>> > --
          >>> > Allen Guan
          >>> > 281-489-2314
          >>> >
          >>> >
          >>> Hi,
          >>> I think you've compiled php without mysql support.
          >>>
          >>> Greetings,
          >>> Jonas[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          Working...