September 12th, 2006, 06:35 PM
|
#12 (permalink)
|
| Junior Member Verified Customer
Join Date: Jul 2006
Posts: 17
|
ok i put the code in here but get another error
-here is where I put the code in showgallery.php Quote:
if ( $cat == 500 || $cat == MOBILE_CAT )
{
list( $tuserid, $tusername, $tmail ) = get_userinfo( "", $ppuser);
$thecatname = "$tusername {$Globals['pp_lang']['gallery']}";
$titlereplace = "$tusername's {$Globals['pp_lang']['gallery']}"; if ( $Globals['memformat'] == "no" )
{
$pquery = ppmysql_query("SELECT id, bigimage, cat, storecat, height, width FROM {$Globals['pp_db_prefix']}photos WHERE approved=1 AND userid='{$memrec['userid']}' AND cat=$cat ORDER BY date DESC LIMIT 1", $link);
}
else
{
$pquery = ppmysql_query("SELECT id, bigimage, cat, storecat, height, width FROM {$Globals['pp_db_prefix']}photos WHERE approved=1 AND userid='{$memrec['userid']}' ORDER BY date DESC LIMIT 1", $link);
}
$photorec = mysql_fetch_array($pquery);
if ( $Globals['spider'] == "yes" )
{
$conurl = construct_ppurl( "{$Globals['maindir']}/showgallery.php/cat/all" );
$seemore = "<a href=\"$conurl\">{$Globals['pp_lang']['tosee']} $tusername's {$Globals['pp_lang']['littlephotos']}</a>";
}
else
| and here is the new error- Quote: |
Parse error: syntax error, unexpected '}' in /home/rstarke/public_html/gallery/showgallery.php on line 354
| |
| |