Thread: Blank page
View Single Post
  #2  
Old 02-20-2009, 04:19 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,736
BMR777 is on a distinguished road
Default RE: Blank page

Just take the file extrapage.php and make a copy. Then open the file and find:

PHP Code:
// Get our content for the index page

$query "SELECT * FROM article_content WHERE page = 'extra'";
$result mysql_query($query);
$num mysql_numrows($result);

//Loop out code
$i=0;
while (
$i 1) {

$article_title=mysql_result($result,$i,"title");
$article_date=mysql_result($result,$i,"date");
$article_content=mysql_result($result,$i,"content");

$i++;
}

$article_title stripslashes($article_title);
$article_content stripslashes($article_content);

$article_content $bbcode->Parse($article_content);

// Run the BBCODE parser on the content 
Go ahead and delete the above code.

Then where the code above was previously, you can add your content. You need to add it in the following format for it to work:

PHP Code:
$article_title "Your page title";
$article_content "The content of your page goes here.  You may paste in HTML too but only use single quotes ' in the HTML instead of double quotes."
Hope it helps,
Brandon
Reply With Quote