[NTLUG:Discuss] Help with RH 6.0 and PHP
hector M Banda
hector at need-info.com
Fri May 19 12:25:19 CDT 2000
Thanks,
All that is working right now but I cannot run any othe mysql command within a
php3 document.
<html>
<body>
<?php
$db = mysql_connect("localhost", "root","");
------I get an error in this line(Fatal error: Call to unsupported or
undefined function mysql_connect() in /home/httpd/html/second.php3 on line 4
mysql_select_db("mydb",$db); $result = mysql_query("SELECT * FROM
employees",$db); printf("First Name: %s<br>\n",
mysql_result($result,0,"first")); printf("Last Name: %s<br>\n",
mysql_result($result,0,"last")); printf("Address: %s<br>\n",
mysql_result($result,0,"address")); printf("Position: %s<br>\n",
mysql_result($result,0,"position")); ?>
</body>
</html>
Any ideas???
Thanks,
On Tue, 14 Mar 2000, you wrote:
> Hector,
>
> In the file /etc/httpd/conf/srm.conf uncomment (remove the #) the
> following two lines
>
> #AddType application/x-httpd-php3 .php3
> #AddType application/x-httpd-php3-source .phps
>
> restart httpd
>
> --
> This tagline is identical to the one you are reading.
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
--
===========================================
Hector M Banda
Senior Computer Programmer
Information Systems Department
Imperial Valley College
Imperial Ca, 92251
Phone: 760.355.6105
Fax : 425.790.6379
============================================
More information about the Discuss
mailing list