1
Hello again guys.
im trying to put some php in a custom block, and its killing the page or just not displaying at all. Maybe one of you guys can tell me what im doing wrong.
im selecting php script in the custom block options, is that all i need to do?
$artid2 = $_GET['artid'];
echo '<table>
<tr>
<td class=head>downloads area </td>
</tr>
<tr>
<td>';
$getportfolio = mysql_query("SELECT * FROM ".$xoopsDB->prefix('dart_gallery')." WHERE artid = '$artid2' AND title = 'portfolio' ");
while ($row1 = mysql_fetch_array($getportfolio)) {
$filename = $row1['filename'];
}
echo '<div id=buttonpoint><a href="gallery/artist'.$artid2.'/'.$filename.'">Portfolio</a></div>';
$getshowreal = mysql_query("SELECT * FROM ".$xoopsDB->prefix('dart_gallery')." WHERE artid = '$artid2' AND title = 'showreal' ");
while ($row2 = mysql_fetch_array($getshowreal)) {
$filename2 = $row2['filename'];
}
echo '<div id=buttonpoint><a href="gallery/artist'.$artid2.'/'.$filename2.'">showreal</a></div>';
$getresume = mysql_query("SELECT * FROM ".$xoopsDB->prefix('dart_gallery')." WHERE artid = '$artid2' AND title = 'resume' ");
while ($row3 = mysql_fetch_array($getresume)) {
$filename3 = $row3['filename'];
}
echo '<div id=buttonpoint><a href="gallery/artist'.$artid2.'/'.$filename3.'">Resumé</a></div>
</td>
</tr>
</table>';
thanks guys
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT