----- Original Message -----
From: "Trask" <[EMAIL PROTECTED]>
> I'm trying to configure MySQL and PHP so that PHP can access MySQL for
> function calls and database access.  It's my understanding that I need to
> use the command - "mysql_connect(<address>, <username>, <password>);"
>
> I tried that and got a syntax error, I tried:
>
> [root@www phpBB2]# mysql_connect(localhost, root, mypassword)
> bash: syntax error near unexpected token `mysql_connect(localhost,'
>
> Any ideas what I'm doing wrong here?

Many, many things.  :)  I'm assuming you're trying to set up phpBB (from
this error message being thrown from your shell, in a directory named
phpBB2).  If so, look at their support page at
http://www.phpbb.com/support.php and follow the directions very carefully.
Any questions you come across while setting up this package will almost
certainly be more appropriately directed there.

If, in some sick twisted world, you're trying to code php, you want to use
the mysql_connect function in a PHP script, not from a bash shell.  I hope
this is not the case, as you appear to have a _long_ road ahead of you.  If
so, the PHP mailing lists will provide you with better support to get
started.

Good luck...
Ryan


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to