|
Posted by Randy Jackson on 06/08/05 02:22
<CobraStrikes@al.com> wrote in
news:1118185644.44303.0@doris.uk.clara.net:
> Hi,
> First of all I am new to all this.
>
> I have installed apache 2.0.54,php5 and mysql 4.1.
> mysql works because I can access it on command line.
> I have run simple php script the usual phpinfo that works.
>
> when I run the following code
>
> <?php
> echo 'started'
> $conn = mysql_connect("localhost", "user", "password") or
> die('error'.mysql_error()); echo "Connected";
> mysql_close($conn);
> ?>
>
> All I get is 'started' no error messages, what am I doing WRONG ?
> I know the problem is with the connection because if i remove it the
> script runs to the end.
>
> any help will be appreicated.
> thanks.
I assume it was a typo when you posted
echo 'started'
and left the semi-colon off the end. If not, you should have gotten an
error right there, and the script should not have executed.
--
Randy Jackson
HTTP://FourColorConsulting.com
[Back to original message]
|