In my php script I'm using functions and
this page name is admin.php and I trying to call function db_conn() but I having this
Fatal error: Cannot redeclare db_conn() in /home/httpd/html/gl/forms.php on line 1
db conn looks like this and I brought out line numbers to in file forms.php
1. function db_conn() {
2. $sys_db_name = "galvi";
3. $connect_db = mysql_connect("localhost", "webuser", "");
if (!$connect_db) {echo "No possible";}
}
admin.php
<?
include('/home/httpd/html/gl/forms.php');
include('/home/httpd/html/gl/index.php');
db_conn();
Why I'm getting this fatal error???