Jump to content
php.lv forumi

help


FT3

Recommended Posts

<?php
$result2 = mysql_query("SELECT * FROM users WHERE online='Y' AND id!=$id");
while($row = mysql_fetch_array($result2))
{
$img = getimagesize($row['bilde']);
?>
<div>
	<?php if($img[0] > 100) echo "<a href='{$row['bilde']}' target='_blank'><img src='{$row['bilde']}' alt='Profila bilde' width='100' /></a><br />";
		else echo "<img src='{$row['bilde']}' alt='Profila bilde' /><br />";?>
	<?php echo "{$row['vaards']} {$row['uzvaards']}"; ?>
</div>
<?php
}
?>

vjg ustajsti lai nerada to avatar bet gan Users online: skaits :?

Link to comment
Share on other sites

Jūs tak nemaz necenšaties. Dabūnat kaut kādu kodu un tad prasat kā to pārveidot, lai viņš dara pavisam ko citu.

 

Un kā saglābat pedejo aktivitāti?

 

UPDATE users SET last_activiti_time = NOW() WHERE id = ...

 

FT3 - nevis WTF, bet paskaties ko tu esi vispār iekopējis neskatoties kas tur rakstīts.

SELECT * FROM TABULA WHERE PEDEJA AKTIVITATE >= ...

Edited by rATRIJS
Link to comment
Share on other sites

×
×
  • Create New...