J
JustChrisLive
Guest
I am building a system where the user chooses the scripts that are used and am trying to do this with the script below but when the include function is used it only returns one script but if I comment the include function out it returns all of the titles of the scripts
. Please Help, the script is below.
$result = mysql_query("SELECT * FROM sidebar
WHERE display='yes'");
while($row = mysql_fetch_array($result))
{
echo $row['title'];
echo "<hr />";
// include($row['script_name']);
}
$result = mysql_query("SELECT * FROM sidebar
WHERE display='yes'");
while($row = mysql_fetch_array($result))
{
echo $row['title'];
echo "<hr />";
// include($row['script_name']);
}