Member Avatar for diafol

In XICS.php you could do this:

<?php
if(!isset($_SESSION))include "functions.php";
?>

Instead of the vanilla include. There's probably a better way of doing all this though.

Fantastic its working if I login but with some Notices -
Notice: Constant HOST already defined in C:\xampp\htdocs\secure\dbconnection.php on line 2
Notice: Constant USER already defined in C:\xampp\htdocs\secure\dbconnection.php on line 3
Notice: Constant PASSWORD already defined in C:\xampp\htdocs\secure\dbconnection.php on line 4
Notice: Constant DATABASE already defined in C:\xampp\htdocs\secure\dbconnection.php on line 5

If this goes then problem solved how can I avoid this.

Member Avatar for diafol

Line 78/79 of XCIS.php:

<?php
if(!defined('HOST'))include 'dbconnection.php';

Again, there's got to be a better way of doing this.

Great...! Really you are great...! Its smooth. working perfect Thank you DIAFOL Thank you for all your co operation and help. If you don't mind may I have your mail id.
Well mine is vishaldb28@gmail.com
Again I want to say from heart Thank you.

Member Avatar for diafol

You're welcome to PM me, if you need something not forum-related. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.