Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Problem include! Why?
Vitos
Posted on 18 Oct 2008, 22:05:58

Access: Member
Total Posts: 1
Joined: 2008-10-18

Hi, my name is VitoS!
I'm Italian..sorry for my english bad! :noexpression:
Ok..my problem is: I install your CMS (N-13 News 3.1) in my webspace and include in my homepage! The include was not viewing..why?
This is my code:
index.php
Code:
<?php

include "config.php";

myheader();
#####################
$get = $_GET['p'];
switch(
$get) {

case 
"cat":
if(
$_GET['id']) {
$catget = $_GET['id'];
$catq = mysql_feth_array(mysql_query("SELECT * FROM news30_cats WHERE id = '$_GET[id]'"));
$cat = $catq['nome'];
include 
"news/index.php";
}
break;

default:
$cat = "all";
$template = "default";
$author = "vito";
include 
"/news/index.php";
break;
}
#####################
myfooter();

mysql_close($db);
?>

config.php
Code:
<?php
error_reporting
(E_ALL);
$db = mysql_connect('sql200.0fees.net','-NO SHOW-','-NO SHOW-') or die("Errore 1: ".mysql_error()."");
mysql_select_db('-NO SHOW-', $db) or die("Errore 2: ".mysql_error()."");

function 
myheader() {
?>
---- HEADER CODE ----
<?php
}

function 
myfooter() {
?>
<?php
$catq 
= mysql_query("SELECT * FROM news30_cats");

while(
$cat = mysql_fetch_array($catq)) {
echo 
"<li><a href=\"index.php?p=cat&id=$cat[id]\">$cat[name]</a></li>";
}     
?>
---- FOOTER CODE ----
<?php
}
?>

My site homepage is: www.vitos.0fees.net My ADMIN news is: www.vitos.0fees.net/news/admin.php Show news page: www.vitos.0fees.net/news/index.php Why not include? :rolleyes: :new_huh:
Thanks. Bye VitoS!!! :blushing:
#448
Last edited by Vitos at 2008-10-18 22:09:36 Reason:
Network-13.com © 2013