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?
mySQL connection problem
Moderator: General Moderators
- EverLearning
- Forum Contributor
- Posts: 282
- Joined: Sat Feb 23, 2008 3:49 am
- Location: Niš, Serbia
Re: mySQL connection problem
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