Page 1 of 1

mySQL connection problem

Posted: Wed Apr 02, 2008 2:38 am
by johnjalani
please help me, i get this error,

Fatal error: Call to undefined function mysql_connect() in D:\GNSolutions\admin.php on line 21

this is my code,

<?php
mysql_connect(localhost, root, mypass);
mysql_select_db(GNSolutions);

$strSQL = "select * from login";
mysql_query($strSQL);

?>

what is wrong about this?

Re: mySQL connection problem

Posted: Wed Apr 02, 2008 3:29 am
by EverLearning
Mysql extension is not loaded. Look into your php.ini and uncomment line(remove the ; character at the beginning og the line) which says something like

Code: Select all

extension=php_mysql.dll