Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

nez :D tik mekleju šo scriptu ;/ ir viens scripts bet vai tu varetu man palidzet viņū partaisit? :?

Edited by FT3
Posted

<?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 :?

Posted (edited)

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
×
×
  • Create New...