Recently Uploaded

Forum
Last Post
Threads / Messages
Ooooh! Index.php? This right? Maybe I could put it there? :p
PHP:
<?php

include("inc/functions.php");
include("inc/bbcode.php");

//***************//
//  START SCRIPT //
//***************//

getpage('index');

// Convert the BBCODE to HTML
$article_content = bbconvert($article_content);

// Convert line breaks to <br>
$article_content = nl2br($article_content);


//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title, $article_content, $date);
?>
 
Ah okay, I'll leave it for now then, I don't want to mess what I have up already :p
 
maybe you could try this:
PHP:
<?php 

include("inc/functions.php"); 
include("inc/bbcode.php"); 

//***************// 
//  START SCRIPT // 
//***************// 

getpage('index'); 

// Convert the BBCODE to HTML 
$article_content = bbconvert($article_content); 

// Convert line breaks to <br> 
$article_content = nl2br($article_content); 

$query = "SELECT * FROM ".$prefix."adoptables ORDER BY id DESC LIMIT 5";
            $result = runquery($query);
            

while($row = mysql_fetch_array($result)){
$image = getcurrentimage($row['id']);
article_content .= '<img src="{$image}" /><br /><b>{$row['type']}</b>';  
}
//***************// 
//  OUTPUT PAGE  // 
//***************// 

echo showpage($article_title, $article_content, $date); 
?>
 
Oops nope, it made my site disappear with the error:
Parse error: syntax error, unexpected T_CONCAT_EQUAL in /home/gashu/public_html/index.php on line 24

It is supposed to go in the index.php file right? :p (I got the site back, no worries there xD)
 
oh oops sec..

PHP:
<?php 

include("inc/functions.php"); 
include("inc/bbcode.php"); 

//***************// 
//  START SCRIPT // 
//***************// 

getpage('index'); 

// Convert the BBCODE to HTML 
$article_content = bbconvert($article_content); 

// Convert line breaks to <br> 
$article_content = nl2br($article_content); 

$query = "SELECT * FROM {$prefix}adoptables ORDER BY id DESC LIMIT 5";
            $result = runquery($query);
            
while($row = mysql_fetch_array($result)){

$image = getcurrentimage($row['id']);
article_content .= '<img src="{$image}" /><br /><b>{$row['type']}</b>';  
}
//***************// 
//  OUTPUT PAGE  // 
//***************// 

echo showpage($article_title, $article_content, $date); 
?>
 
Naww, still no luck :( It's okay, I can do it manually if not. I want to see if my Uni does some coding classes because I'd really love to learn PHP and CSS properly :D
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top