I have the following error:

(include_path='.:/usr/share/php:/usr/share/pear') in /home/sloki/user/masterli/sites/masterlink.co.id/www/cgoods/banner.php on line 15

Line 15:

include("includes\koneksi.php");

That error appears after I upload my website online.


Why is it ?

Recommended Answers

All 3 Replies

check your path

my whole code:

banner.php

<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
</style>
 

<div id="banner">
	
	<div class="headerStyle">
    <div style="padding:4px 0px;">&nbsp;Banner</div>
    </div>
<?php
	
	include("includes\koneksi.php");
	
	$result = mysql_query("SELECT gambar FROM banner");
	
	while ($data = mysql_fetch_array($result)){
		echo '<img src="Images/'.$data['gambar'].'" width="70" height="70"><br>';
		}
		
?>

</div>

banner table:

id link gambar
1 www.link.com Array

Your path is wrong - it should be a forward slash, not a back slash as in any path to a file.

include("includes/koneksi.php");
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.