well let me see if i cant clear this up a bit ( since im online again now )
PHP Code:
This is view.php
<?
include("include/header.php");
?>
<div id="primary" class="single-post">
<div class="inside">
<div class="primary">
<h1><? include("include/raidname.php"); ?></h1>
</div>
<hr class="hide" />
<div class="secondary">
<h2>Detailed Raid Information</h2>
<div class="featured">
<dl>
<dt>Date:</dt>
<dd>$date</dd>
</dl>
<dl>
<dt>Time:</dt>
<dd>$time</dd>
</dl>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<?
include("include/sidebar.php");
include("include/footer.php");
?>
PHP Code:
This is the /include/raidname.php
<?
$query = "SELECT raidID, raidName from raid";
$result = mysql_query( $query );
if (!$result)
{die ("Could not query the database: <br />". mysql_error());}
while ($row = mysql_fetch_array($result)){
$Name = $row["raidName"];
$id = $row["raidID"];
echo " $Name";
}
?>
i cant get functions to work so im using includes for the stuff i need, yes i know its a mess but i really the only way i know i can get it to work..
Bookmarks