PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Jul 07, 2020 10:42 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Little Help Please
PostPosted: Tue Aug 17, 2010 3:42 pm 
Offline
Forum Newbie

Joined: Tue Aug 17, 2010 3:35 pm
Posts: 2


Top
 Profile  
 
 Post subject: Re: Little Help Please
PostPosted: Fri Aug 20, 2010 3:55 am 
Offline
Forum Newbie

Joined: Thu Aug 19, 2010 7:07 am
Posts: 7
hi sir,

i try to solve this problem ,and this is
[links_show]
{

$query = "SELECT * FROM links order by links_id";
$result = mysql_query($query,$link)
or die(mysql_error());
}

<table class="aatable">
<tr>
<th >no.link</th>
<th>name_link</th>
<th>hits</th>

<th></th></tr>
<?php

while ($row = mysql_fetch_array($result)) {
$links_id = $row['links_id '];
$links_name = $row['links_name '];
$links_hits = $row['hits'];


echo "<tr>";
echo "<td>".$links_id."</td>";
echo "<td >".$links_name."</td>";
echo "<td>".$links_hits."</td>";


?>
<td><a href="links_count.php?action=edit&id=<?php echo $row['$links_id']; ?>">counter</a> </td>

///////////////////////////////////////////////in [links_count]//////////////////
<?php
$updatesql = "SELECT hits FROM links
WHERE links_id='".$_GET['id']."'";
$result = mysql_query($updatesql)
or die("Invalid query: " . mysql_error());
$thisrow=mysql_fetch_array($result);
$hits=$thisrow[0];
$hits++;

$sql="UPDATE links SET hits='$hits',
'
WHERE links_id='".$_GET['id']."'";

/////////////////////////////////
i hope to solve the problem .....
any question i will replay ...
iam ready to help you...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group