Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8862421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:43:29+00:00 2026-06-14T15:43:29+00:00

I have a basic code here: <? include(inc_dblib.php); include(inc_ecs.php); $db = dbconnect(); $id =

  • 0

I have a basic code here:

<?        
include("inc_dblib.php");
include("inc_ecs.php");
$db = dbconnect();
$id = 10;
?>
<?php echo text_view($db,$id,"<h3><br />^lead^</h1>   <br />^text^");?>
    <br />

inside inc_ecs.php i have:

function text_view($dblink,$id,$code) {

if( !$rset = dbquery($dblink,"article_view",$id) )
return FALSE;
$item = mysql_fetch_assoc($rset);
$text=$item["text"];
$title=$item["title"];
$lead=$item["lead"];
$capelo=$item["capelo"];
$author=$item["author"];

$vowels = array("^text^","^title^","^capelo^","^lead^", "^author^");                                                        
$yummy = array($text, $title, $capelo, $lead,$author);      
$code = str_replace($vowels,$yummy,$code);
return $code;
}   

however every time I run my script it tells me

Fatal error: Call to undefined function text_view

. Any ideas? Thanks.

Ok
so I found an other problem.
I have tried to insert the echo “Hello World!”; in the code of the inc_ecs.php.
When I browsed the page, I realised that a major part the code it is shown as text.
I turned back to the remote version and it shows a blank page when called in a browser.
the inc_ecs.php page start showning the code from “return $outputVar;” and the remaining hole code of the page is shown:

function graphical_counter ($db, $id){
    $str = counter($db, $id);
    $visitors_split = chunk_split ($str,1,'');
    $visitors = strlen($str);        
    for ($i ; $i< $visitors ; $i++){
        $outputVar .= "<img src='./images/counter/".$visitors_split[$i].".gif' width='15' height='20' border='0' align='absmiddle'>";
    }
    return $outputVar;
}
/*
End Counter Functions

Is there an error in this code ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:43:30+00:00Added an answer on June 14, 2026 at 3:43 pm

    your include(); should be inside of the tag:

    <?php
    include("inc_ecs.php");
    echo text_view($db,$id,"<h3><br />^lead^</h1>   <br />^text^");
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the basic jQueryUI progress bar code here; <script> $(function() { $(#progressbar).progressbar({ value:
Basic question here - I have many lines of code that look something like:
I have some basic PHP code: $raceramps56[short] = My Test Product; $leftMenu = '<div
I have a real basic form (code below) with a bunch of back-panel PhP.
I have a basic PHP question, take the code below for example, let's say
I have some C++ code that implements a basic Pixel class. Here's just a
I have some pretty basic C++ code: #include <iostream> #include <string.h> #include <msclr\/marshal_cppstd.h> #using
So, here is some basic code which illustrates my question: #include <functional> int func(int
Alright so pretty basic, here are the pieces of code I have, basically it's
I have the basic code to rewrite a subdomain to another page. But how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.