include code

Need some help with the script?

include code

Postby WEBstar » Thu Jul 08, 2010 3:02 pm

Hi, i have two problems.

When i include HEAD.PHP it dont want to load all page. (where should i put include code?)

And i can use only one include code, when i insert second include code, the news doesnt show up? :roll:

please help, thank you!
:wink:
WEBstar
 
Posts: 14
Joined: Thu Jul 08, 2010 1:20 pm

Postby Hawk » Thu Jul 08, 2010 8:12 pm

You should include head.php on very top of your page, before the <html> tag.
User avatar
Hawk
 
Posts: 248
Joined: Tue Aug 29, 2006 9:00 pm

Postby WEBstar » Thu Jul 08, 2010 8:37 pm

i included, but then it dont want to load page... its white...
WEBstar
 
Posts: 14
Joined: Thu Jul 08, 2010 1:20 pm

Postby WEBstar » Thu Jul 08, 2010 8:52 pm

ok, now the include head working...

Code: Select all
<?php include('/news/head.php'); ?>


but i can only insert one include code on page..

Code: Select all
<?PHP
$number = 1;
$category = '1';
$template = 'glavna_content';
include $cutepath.'news/show_news.php';
?>


when i insert second.. it doesnt show up

Code: Select all
<?php
$number = 2;
$category = '2';
$template = 'glavna_headlines';
include $cutepath.'news/show_news.php';
?>


im using mysql, i cleared cache... can someone help me with this? im searching this forum, but i cant find anything...
WEBstar
 
Posts: 14
Joined: Thu Jul 08, 2010 1:20 pm

Postby WEBstar » Thu Jul 08, 2010 8:59 pm

hahahahahaha... more shocks.. :?

Code: Select all
<?PHP
$number = 1;
$category = '1';
$template = 'glavna_content';
include $cutepath.'news/show_news.php';
?>
<?php
$number = 2;
$category = '1';
$template = 'glavna_headlines';
include $cutepath.'news/show_news.php';
?>


when i insert code like this... it only show the first include code.. when i switch them.. it shows the second... :D im freaking out :twisted:
WEBstar
 
Posts: 14
Joined: Thu Jul 08, 2010 1:20 pm

Postby WEBstar » Thu Jul 08, 2010 9:50 pm

ok, i made it.. the problem was

Code: Select all
include 'news/show_news.php';


but now, there is another problem:

Image

i have two same news.. is there any option like in cutenews

Code: Select all
$start_from="1";


please help :)
WEBstar
 
Posts: 14
Joined: Thu Jul 08, 2010 1:20 pm

Postby WEBstar » Fri Jul 09, 2010 12:21 pm

you can lock... i found SKIP function in help....
WEBstar
 
Posts: 14
Joined: Thu Jul 08, 2010 1:20 pm


Return to Help



Who is online

Users browsing this forum: No registered users and 0 guests

cron