Page 1 of 1

fatal error: undefined call to function mysql_connect()

Posted: Tue May 30, 2006 9:32 pm
by beckbapegeneral
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


i was coding my php connection yesterday and i get the error mention above.

connection.php

Code: Select all

<?php
$conn = mysql_connect('localhost','username','password') or die (mysql_error());
mysql_select_db('pms');
?>

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Tue May 30, 2006 9:36 pm
by feyd
the MySQL extension isn't loaded. Check your phpinfo(), your php.ini and make sure you are using the correct versions of the libraries required.

...and you've got another thread on this subject already. Stick to that thread please.