In message <[EMAIL PROTECTED]>, briannekc <[EMAIL PROTECTED]>
writes
>Hey there,
>
>I am new to all this, so I hope I make sense.
>
>I have installed Apache, PHP, and MySQL on my Windows machine.  
>Apache and PHP are working great; I created test templates and it's 
>all set.  Additionally, MySQL is working great for me too.  I have 
>tested it out from the commmand prompt and I am able to create 
>databases, etc.
>
>However, I am trying to get PHP to connect to the MySQL and it's not 
>working.  My php file is failing on the mysql_connect call.  
>Everything before this call shows up, and then it stops.
>
>I have read all the documentation and I've changed the php.ini file 
>so that the MySQL extension is enabled.  I'm pretty certain that I 
>have followed everything correctly, and I am totally stuck.  It's 
>driving me crazy!
>
>I'm not sure if I have described my problem clearly enough, and it's 
>hard to diagnose problems without really seeing how things are set 
>up on my machine...  but if there is anyone out there who can help 
>me, I would totally appreciate it.

Do you have an error message?

The PHP Manual suggests
$link=mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) die('Could not connect: ' . mysql_error());

and tell us what error message you get.

-- 
Pete Clark

Sunny Andalucia
http://www.hotcosta.com/comm_1.htm


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-list/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to