I have this source code at the moment, but the issue I am having is that the site will not display code. It appears in the database correctly, but when being pulled from the database to the display page there seems to be an issue.
<?php
while($row = mysql_fetch_array($snippetinfo))
{
$dSnippetID = $row['snippetID'];
$dSnippetDate = $row['dateAdded'];
$dSnippetText = $row['snippetContents'];
}
?>
<div class="container">
<div class="content">
<div class="page-header">
<h1><?php echo $dSnippetID; ?> <small><?php echo $dSnippetDate; ?></small> </h1>
</div>
<div class="row">
<div class="span10">
<pre class="prettyprint">
<?php echo $dSnippetText; ?>
</pre>
</div>
do you get only one result, but not all? if so change too [ ]
if you want get all results you maybe need a foreach loop
if you dont get any rows; maybe
var_dump($row);and also post more informations 🙂