On Thu, 27 Feb 2003, Francisco Neira wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jianping Zhu wrote:
> | I install
> |
> | php-4.1.2-7.3.6.i386.rpm
> | and mysql rpms in my redhat 7.3 server.I have apache 1.3.7
> | but when i try to connect to mysql by using phd i always get error msg
> |
> | "Call to undefined fuction mysql_connect()"
> |
> | my php code looks like
> |
> | **************************************************
> | <?php
> |    $host='localhost';
> |    $user='root';
> |    $passwd='lychee1830';
> |    $db='registeredusers';
> |    $table='apidbusers';
> |    $dbh=mysql_connect($host, $user, $passwd);
> |    mysql_select_db($db, $dbh);
> | ?>
> | <html>
> | <head><tiltle>Hello World Script</title></head>
> | <body>
> |     <?php echo "Hello World from php";?>
> | </body>
> | </html>
> | **************************************************************
> |
> | I guess i need to set up somthing to connect php with mysql. but I do not
> | know how to.
> |
> | Thanks for any advice.
> |
> | J.P.
> |
> |
> |
> 
> Usually that error message appears when PHP doesn't have the MySQL
> module included.
> 
> Try this:
> 
> <?php
> phpinfo();
> ?>
> 
> save this as a php program and try to run it. You should be able to see
> in the output if the MySQL module is included there or not.
> 
> Good luck
> 
> 
> - --
> Francisco Neira B.                                  /~\ The ASCII
> Administrador de Red                                \ / Ribbon Campaign
> Defensoria del Pueblo                                X  Against
> Lima, Peru, -05:00 UTC                              / \ HTML Email
> PGP Pub Key at http://portal.defensoria.gob.pe/~fneira/llavepublica.asc
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQE+XnrRkGxqImhGCe4RAqyqAJ0cixHi4VJOnhSdRNLJCDqLwiHz+gCdG8W+
> y9NtSrWp1hezijY/CNAOBes=
> =G7Xy
> -----END PGP SIGNATURE-----
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 


--------------------------------
Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900
--------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to