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

A href problem under php
Hello...

I tried to explain the issue in an earlier post.. but was not clear enough....

Displaying different page content, depending on the logged in user.
Hi all, I am new to ASP.net (and web development in general), and have a question about how I can di

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

PHP Session Issue
I'm having an issue with one section on my website dealing with sessions. Now I know that myself and

strtotime issue
Hey all,

I'm playing around with some code, and basically the idea is:

Person changes

DateTimeZone::listIdentifiers headache
http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states tha

Login Functionality Working Different on IE
This is an odd one, I have a site which has an admin section. The admin pages unsurprisingly require

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

Simple AND question
Hello,

I've got following code:

Code: if(strpos($row[13],"http://")

Best way to read this text file.
Hi.I am planning to make a small application in C# to convert the players from Football manager 2010

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