mySQL connection problem
Posted: Wed Apr 02, 2008 2:38 am
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?
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?