For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > April 2005 > help on php









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author help on php
Nicholas Tan

2005-04-14, 8:56 am

Hi, I have installed php and mysql into my server( windows server 2003) the
php and mysql works when i like to use php connect it into the mysql. by
using this syntax:

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

But it happens to show this error message
Fatal error: Call to undefined function mysql_connect() in (directtorythat
this file is in)\n.php on line 2

please help.

Thanks
Nicholas

________________________________________
_________________________
Get MSN Hotmail alerts on your mobile.
http://mobile.msn.com/ac.aspx?cid=uuhp_hotmail
Derick Rethans

2005-04-14, 8:56 am

On Thu, 14 Apr 2005, Nicholas Tan wrote:

> Hi, I have installed php and mysql into my server( windows server 2003) the
> php and mysql works when i like to use php connect it into the mysql. by using
> this syntax:


Please visit http://php.net/support.php to find out how to get support
on PHP, this is the wrong place.

Derick

--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com