profile view

250
.
can anyone help me to get the coding about how many times user viewed profile and to show their names for latest johncms3.2 thenks very much
.
Dimario
You need to be considered that the number of times viewed your profile and last nick who watched?
.
Dimario
in php_myadmin makes a request: alter table `users` add `see` text not null;

then in the questionnaire embed code:

if ($id <> $user_id)
mysql_query ("UPDATE` users `SET` see `=` see `+1 WHERE` id `= '". $ id ."'");

And then in the bottom of the questionnaire embed code: echo '<div class="menu"> Questionnaire
watched:'. $user['see']. ' again </div> ';
.
Let Mortal Kombat begin
Not questionnarie, but anketa.php
ps: google translate kills me sometimes.
.
normal translator, but on the topic: afftoru it had?
.
thanks i will try. very much thanks
.
Let Mortal Kombat begin
Dimario, That's not very good idea. If you do like that, so you can lost compatibility with latest versions, because of adding new field in the base.
So, we can do nest way...
Create new table `users_watch`
with second fields `id`, `anketa`, `user_id`
and after each view we write
if($id)
mysql_query("insert into `user_watch` set `anketa`='".$id."', `user_id`='".$user_id."' ");
than we able to show all those viewers...
Just because i write from phone, i can't write each step, but may be anybody can do
.
I'll do tomorrow
.
New f mjg ama
Всего: 9