לא תקינה, זאת אומרת למשל שמשתמש מסויים לא העלה תמונה/שהגדיר תמונת פרופיל כחסויה.
ואני מעוניין להציג בעמוד הראשי, אך ורק פרופילים בעלי תמונה.
PHP קוד:
$resultsds = mysql_query("SELECT * FROM users WHERE sex = 2 and logo = 1 order by RAND() LIMIT 5");
while ($rowsyom = mysql_fetch_array($resultsds)) {
$lglgs=$rowsyom['logo'];
$pcs=$rowsyom['pic'.$lglgs];
$dayyom=$rowsyom["datee"];
$dayyom=substr($dayyom,0,5);
if ($pcs=="" || $pcs==" ") {
$pcs="images/nopic.png";
}