No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Hi Add a condition before line 18 in signing.php as given below [CODE]if(is_resource($result)) { if(mysql_num_rows($result) == 1) { setcookie ("member", time(), time()+15); echo "Success"; } else { echo "<p style='color:red;'>Rangt Lykilorð eða username</p>"; } }[/CODE]
[QUOTE=tomato.pgn;1535268]Take a variable and add it into the field in your database .When the registered use logins just then set that variable and once he leaves reset that variable. Count the number of rows in which that field is set...That's your required outup...[/QUOTE] But what if an un-registered user visits …
I think This code needs intval() before assigning number. [CODE] function __construct($entryId) { $this->entryId = intval($entryId); }[/CODE]
[url]http://1plusdesign.com/articles/add-countdown-timer-website/[/url] This example looks good for me.
You should write like this. if(!$result = mysql_query($query_test,$db))
The End.
ariese