MySQL Forums
Forum List  »  PHP

Connecting mysql with php
Posted by: Abha Gupta
Date: March 13, 2009 11:25AM

Hello All!

I am new to mysql and php.I tried to connect mysql with php via the following code.But, all i get is an error message HTTP 500 internal server error.
$conn = mysql_connect("localhost","root","abha") or die(mysql_error());

I am using:-
Php 5.2.8
Apache 2.2.11
Mysql 5.0.67
Operating System - Vista Home edition
Please solve my problem.
Thanks in advance.

Edited 1 time(s). Last edit at 03/13/2009 02:58PM by Abha Gupta.

Options: ReplyQuote

Written By
Connecting mysql with php
March 13, 2009 11:25AM
March 14, 2009 01:49PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.