List:General Discussion« Previous MessageNext Message »
From:Peter Brawley Date:March 9 2006 7:30pm
Subject:Re: php and mysql
View as plain text  
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 
a mysql user just for the db access required by your pages.


> 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

php and mysqlMary Adel9 Mar
  • RE: php and mysqlfbsd_user9 Mar
    • RE: php and mysqlMary Adel9 Mar
      • RE: php and mysqlJC9 Mar
  • Re: php and mysqlPeter Brawley9 Mar
RE: php and mysqlSST - Adelaide)9 Mar
  • RE: php and mysqlmysql9 Mar
  • RE: php and mysqlIng. Edwin Cruz9 Mar