Mary Adel wrote:
> I have a severe problem that php5 cannot connect to mysql and i don't
> know why
> also i am using linux
> here is my peice of code
> :<?php
> print "hi";
> mysql_connect('localhost', '', '') or die(mysql_error());
> echo "Connected to MySQL<br />";
> print "connected";
> ?>
> if their is any configuration please tell me
>
PHP wants a username and password. For web pages, it's good practice to
create
a mysql user just for the db access required by your pages.
PB
-----
> thanks,
> mary
>
>
>
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.0/275 - Release Date: 3/6/2006