Ok, here is the code i'm using now:
PHP Code:
$uploadcode = $DB_site->query("SELECT uploadcrap FROM portfolio LIMIT $numofportfolio");
while($uploadcodes = $DB_site->fetch_array($uploadcode)) {
eval(" \$codecrap = \" " .gettemplate("codecrap_ap")."\";");
}
Then in the codecrap_ap template, I have $uploadcodes[uploadcrap] but I get an error:
"Warning: mysql_fetch_array supplied argument is not a valid MySQL result resource in db_mysql.php
Any ideas why?