Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 21st, 2006, 10:43 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default Fatal error: Call to undefined function mysql_pcon

hi friends,
i'm using php version 5.1.4.4, MySQL Server 5.0
when i try to use $cnn = mysql_pconnect($hostname_cnn, $username_cnn, $password_cnn) or die(mysql_error());
i'm getting following error message,
Fatal error: Call to undefined function mysql_pconnect() in E:\webdesign\Accounts\Connections\cnn.php on line 6
can you please give me a quck solution.
thanks

surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
  #2 (permalink)  
Old May 22nd, 2006, 04:57 AM
Authorized User
 
Join Date: Mar 2006
Location: , , United Kingdom.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You appear to have PHP5. As of PHP5 mysql support is not embedded into PHP. Instead you need to enable the mysql extension in the php.ini file in order to use any mysql_*() functions.

You'll want to go here:
http://uk.php.net/manual/en/ref.mysql.php

and scroll down the page until you find Installation on Windows Systems header and then read the paragraphs under the the PHP5+ heading.

  #3 (permalink)  
Old May 23rd, 2006, 10:41 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hello,
now i'm getting following error,
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found. in Unknown on line 0
i don't have php_mysql.dll, can you guide me, where i may able to get

surendran
(Anything is Possible)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined Function Error arimakidd Beginning PHP 2 November 10th, 2005 02:54 AM
Call to undefined function mysql_connect() tks_muthu PHP Databases 2 June 14th, 2005 01:23 AM
Fatal error: Call to ... domxml_open_mem() Philibuster PHP Databases 0 January 1st, 2005 10:34 PM
Error trying to call Oracle function in VB.NET lou_1 Pro VB.NET 2002/2003 0 January 13th, 2004 06:42 PM
error Call to undefined function: query() gmanon Wrox Book Feedback 1 November 20th, 2003 06:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.