[NTLUG:Discuss] Help with RH 6.0 and PHP
MadHat
madhat at unspecific.com
Fri May 19 12:38:04 CDT 2000
hector M Banda wrote:
>
> Thanks,
>
> All that is working right now but I cannot run any othe mysql command within a
> php3 document.
>
Did you use the default install (the one that came with the distro)? It
doesn't have any DBM support (like the one that comes with most
distros), because there are too many DBs around now to try and support
them all with one build. It is in the FAQ at php.net and is usually the
problem.
> <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
> ============================================
>
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss
--
MadHat at unspecific.com
"The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris."
--Larry Wall
More information about the Discuss
mailing list