Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //connection to MYSQL Database
- //Function called in external scripts
- function DBConnect(){
- //add further global vars at the end of the line below once you have created them in the database tool
- global $TestDBConnection, $Host, $User, $Password, $DBName, $Table_1; $id; $firstname; $lastname; $email; $phone; $question;
- $Host="localhost";
- $User="k0185005";
- $Password="bx2ZTpqa";
- $DBName="k0185005";
- //add links to your new tables here aswell
- $Table_1="Contact";
- //comment out this block when connection is successful!
- /*if(mysql_connect($Host, $User, $Password)){
- print "connection active !";
- }else{
- print "connection error! please check details in common.php!";
- }*/
- } //close function
- ?>
Add Comment
Please, Sign In to add comment