Dynamic links in an include file


Posted on 16th Feb 2014 07:03 pm by admin

I am working on a small piece of code that counts records from a database and displays the result to the user. Everything works fine, except I am running into difficulties with dynamic links.

The code that accesses my database is implemented inside a class. It works fine except that when I directly include the database include file, the script cannot recognize that the database class exists. I have to dynamically link it. But the page that is running the counting script (and needs to include the database file) is also included on other pages.

Did you know?Explore Trending and Topic pages for more stories like this.
Any ideas? Did my weak explanation make sense?
No comments posted yet

Your Answer:

Login to answer
70 Like 39 Dislike
Previous forums Next forums
Other forums

Access website from only 1 computer...?
One of my customers wants his website to only be accessed by people in which they bought the website

Giving the below syntax error
Dear Experts,

I have used 2 buttons in gui status as display and cjhange.When the user wi

How to ask a regex question?
Hi, I thought I'd share some of my insight after seeing too many bad questions that either get ignor

New to mysqli library - Multiple query problem
Greetings,

I am writing a batch program that executes 3 queries on a single page. Using mysql

please help
HTML Code:

Code: <span id="ctl00"><span>

Calander Basic Spript help
hi, just starting out with PHP and have the following script:

<?php
//This gets t

Auto-populating dropdowns and multiple forms.
Here's what I have so far:

First drop down = select a state (works)
This populates the sec

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

How to show a complete textarea ??
I enter Client Case Notes notes in a textarea field on a PHP form. The field is 5 rows deep and 70 c

User input in to variable
Hi all,

I'm sure this is very easy but I'm having another brain freeze!

At the end of

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash