hello guys I need help with this:<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?>

Reply

Join Date: Nov 2008
Posts: 5
Reputation: macokovac is an unknown quantity at this point 
Solved Threads: 0
macokovac macokovac is offline Offline
Newbie Poster

hello guys I need help with this:<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?>

 
0
  #1
Nov 24th, 2008
Hello all I need fast answer on this: How i can change(or) reset value ["referalvisits"] to ZERO?
let's say that there is some value: for example 23220
I need reset it to zero and count again from zero..
""
  1. <th>Referral Visits</th>
  2. <td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?></td>
""

thank you alot
I will send 5$ on alertpay if you will resolve my problem..
Last edited by peter_budo; Nov 24th, 2008 at 6:24 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 293
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: hello guys I need help with this:<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?>

 
0
  #2
Nov 24th, 2008
are you retrieving value from database ??
i think you are using while loop..
and fetching result in $row ....

so give me more info about this??
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 1
Reputation: Madcoe is an unknown quantity at this point 
Solved Threads: 0
Madcoe Madcoe is offline Offline
Newbie Poster

Re: hello guys I need help with this:<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?>

 
0
  #3
Nov 24th, 2008
$row["referalvisits"]=0;

add this to where you want to make that variable 0.

That is all you should do.

That means $row["referalvisits"] is an ordinary array variable which you set its values from db.

Also php is free enjoy it. You dont need to pay someone to ask a question about php .

Thanks
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 293
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: hello guys I need help with this:<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?>

 
0
  #4
Nov 24th, 2008
post your full code ....
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 293
Reputation: Aamit has a little shameless behaviour in the past 
Solved Threads: 11
Aamit Aamit is offline Offline
Posting Whiz in Training

Re: hello guys I need help with this:<td>&nbsp;&nbsp;<? echo $row["referalvisits"]; ?>

 
0
  #5
Nov 24th, 2008
  1. $sql="Update yob_users SET referalvisits='0' where username='$user' ";
  2.  
  3. $result = mysql_query($sql);
  4. $row = mysql_fetch_array($result);

by using this you set value for referalvisits 0

then check referalvisits or declare variable count
check visits & increment count++
then set referalvisit with that count and dispaly referalvisits using echo
Last edited by peter_budo; Nov 24th, 2008 at 6:25 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC