I'm a newbie in PHP SQL.
Say if this was my code in a php file:
<?php
$Host = "127.0.0.1";
$User = "usernm";
$Password = "passworsde";
$DBName = "mydatabser";
This code is in every PHP page that I have created. (At least 35)
Is there a way just to put that above code in a seperate file and just use a get command or somthing to "get" the variables and its data??
Would make it heaps quicker say if the password was changed. All I have to do is edit 1 file instead of 35.
-----------------
MK
Say if this was my code in a php file:
<?php
$Host = "127.0.0.1";
$User = "usernm";
$Password = "passworsde";
$DBName = "mydatabser";
This code is in every PHP page that I have created. (At least 35)
Is there a way just to put that above code in a seperate file and just use a get command or somthing to "get" the variables and its data??
Would make it heaps quicker say if the password was changed. All I have to do is edit 1 file instead of 35.
-----------------
MK