MySQL Forums
Forum List  »  PHP

Re: Page disappears
Posted by: Alec Altby
Date: March 12, 2006 06:28AM

Seems that I have the same problem as you, Jayyde.

I just get a white page. Tho I've got some errors in my error.log (running at apache)

[Sun Mar 12 12:50:02 2006] [error] [client 217.208.214.66] PHP Fatal error: Call to undefined function mysql_connect() in C:\\Program\\Apache Group\\Apache2\\htdocs\\test.php on line 2

the code as simple as this sthis:

<?php
$link = mysql_connect('localhost', 'root', 'xxxx');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

What's weird is that phpmyadmin works with mysql.

Anyone who know what's wrong?



Edited 1 time(s). Last edit at 03/12/2006 06:31AM by Alec Altby.

Options: ReplyQuote


Subject
Written By
Posted
March 04, 2006 01:48PM
March 05, 2006 08:03AM
March 05, 2006 12:58PM
March 05, 2006 01:57PM
March 05, 2006 05:19PM
March 05, 2006 06:09PM
March 05, 2006 06:15PM
March 05, 2006 10:47PM
March 06, 2006 06:18PM
March 06, 2006 10:54PM
March 09, 2006 08:10PM
March 09, 2006 08:16PM
March 09, 2006 08:19PM
March 09, 2006 08:23PM
Re: Page disappears
March 12, 2006 06:28AM


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.