
General Error Message:
Could not obtain picture information<br /><br /><b><u>DEBUG MODE</u></b><br /><br />SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2<br /><br />SELECT pid FROM cpg135_pictures
WHERE aid = </br /><br />Line : 723<br />File : usercp_viewprofile.php
Code: Select all
$sql = "SELECT p.filename, p.filepath, p.aid, p.pid, p.title as p_title, p.caption, p.pic_rating, p.ctime, a.* FROM " . PICTURES_TABLE . " p, " . ALBUMS_TABLE . " a
WHERE a.aid = p.aid
RMcGirr83 wrote: and another
General Error Message:
Could not obtain picture information<br /><br /><b><u>DEBUG MODE</u></b><br /><br />SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2<br /><br />SELECT pid FROM cpg135_pictures
WHERE aid = </br /><br />Line : 723<br />File : usercp_viewprofile.php
code
Code: Select all
$sql = "SELECT p.filename, p.filepath, p.aid, p.pid, p.title as p_title, p.caption, p.pic_rating, p.ctime, a.* FROM " . PICTURES_TABLE . " p, " . ALBUMS_TABLE . " a WHERE a.aid = p.aid
Code: Select all
WHERE aid = $albumid";
alien13 wrote: Joe Belmaati, is there way to make, when the user is not upload any pictures in the gallery, in Profile Page to appear some message, for example - No uploaded pictures. Thanks in advance!
Code: Select all
'WIDTH' => 100/NUM_PICS
));
}
}
Code: Select all
else
{
$template->assign_block_vars('switch_no_pics', array(
'L_NO_PICS' => sprintf($lang['No_pics'], $profiledata['username'])
)
);
}
Code: Select all
$lang['Latest_pics'] ='Latest pictures from %s (Files uploaded: %d)';
Code: Select all
$lang['No_pics'] = '<b>%s</b> has not uploaded any pictures yet';
Code: Select all
<!-- BEGIN switch_pics -->
Code: Select all
<!-- BEGIN switch_no_pics -->
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" class="forumline">
<tr>
<td class="row1" align="center"><span class="genmed">{switch_no_pics.L_NO_PICS}</span></td>
</tr>
</table>
<!-- END switch_no_pics -->