Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

connecting to mysql using php

Status
Not open for further replies.

thumbelina

Programmer
Jun 4, 2001
58
CA
ok i saw the way in the faq with all the variables, but it doesn't work well even though that's the metod that is everwhere. i know there is another way to do it, it is simliar to:<?php mysql_connect(&quot;localhost&quot;,&quot;user&quot;,&quot;passw&quot;)or die(&quot;can't get on&quot;);?>
does anyone know what i'm missing??
 
Perhaps it is your configuration. Try messing around with the php.ini file and seeing what modules are loaded.

Hope this helps,

-Vic vic cherubini
vikter@epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====
 
make sure you are doing something like this:

$conn = mysql_pconnect(&quot;host&quot;,&quot;user&quot;,&quot;pass&quot;) or die(mysql_error());
@mysql_select_db(&quot;database&quot;,$conn);

if you get an error that says call to undefined function mysql_pconnect or something like that, you definitely do not have mysql support.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top