Re: [PHP] mysql_connect noob question

[email protected] (Glob Design Info)
Newsgroups php.general
Message-ID <[email protected]>
Same error. That just turns those into string literals.

On 4/20/13 5:48 AM, David OBrien wrote:
>>> $form_user = $_POST[ 'user' ];
>>> $form_pass = $_POST[ 'password' ];
>>>
>>> # Connect to remote DB
>>>
>>> $LINK = mysql_connect( $host, $form_user, $form_pass );
>>>
>>> And yes, my $host param is correct.
> Have you tried
>
> $LINK = mysql_connect( $host, "$form_user", "$form_pass" );
>
> just for the heck of it?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.