We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
Rating Script Memory; Need to limit one rate per visitor
Topic Started: Sep 29 2005, 12:42 AM (1,124 Views)
lavashark.com
Member
[ * ]
Hey!
New here, but I hope these forums are SMART! because I need some assistance!

My website has a rating script.
This script, obviously, allows users to rate the articles displayed.

Any wizards :seth: out there wanna help me tackle the script to limit only one vote each?
Besides login I guess it would be cookie based?

-Will :lol:
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Yes, cookie bases, or store the IP in a database.
(Though that would require you to have a database.. do you? )
Do you already have a script that just needs to be modded?
Or do you just need a brand new script for this?
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
Yeah I do have a database, and I do already have the script.
All we need to do is modify the script to one rate/visitor.
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Ok...
Just make a table in the database.
Call it articel_rating_counter
(Or well.. call it whatever you want, I'll be calling it that)
Give it 2 fields, being:
article(The same type as the the artical ID is in the rating script)
ip(charvar15)

In the part of the script that puts the rating into the database, put:
Code:
 
$viewer_ip = $SERVER['REMOTE_ADDR'];
$article_id = '';//This, I do not know
mysql_query("INSERT INTO articel_rating_counter (article, ip) VALUES ('$article_id', '$viewer_ip')");


In the part of the script where the rating is filled in, put this:
Code:
 
$viewer_ip = $SERVER['REMOTE_ADDR'];
$article_id = '';//This, I do not know
$check_q = mysql_query("SELECT * FROM articel_rating_counter WHERE ip = '$viewer_ip' AND article = '$article_id' ");
if(@mysql_num_rows($check_q) == 0){
//
// Script goes here
//
}else{
//
// What should happen if they may not rate it.
//
}


If this isn't clear enough, or you're not into coding enough to mod the script, please post the code here, so somebody can do it for you.
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
Database:
Added table "ratecount"
Field one: NewsID
Field two: IP

What should I put under "Length/Values"?

I am adding via phpMyAdmin.
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
IP should be 15 characters long (CHARVAR) and NewsID should be long enough to hold a unique id for every article.
(If you aren't using any, just make it a 3 character long INT
Offline Profile Quote Post Goto Top
 
IrishDragon
Member
[ *  * ]
erm...IS there a hack/code that allows you to collect the IPs from people as they connect or at least login to your forums?

(ex IrishDragon xxx.xx.xxx.xx, 00.000.00.011, 22.222.22.111)

This way if you have clients logging in from alternate locations yuo can record the IP address each time instead of the originating IP they registered with?
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
Qj
September 29, 2005 08:59 AM
Ok...
Just make a table in the database.
Call it articel_rating_counter
(Or well.. call it whatever you want, I'll be calling it that)
Give it 2 fields, being:
article(The same type as the the artical ID is in the rating script)
ip(charvar15)

In the part of the script that puts the rating into the database, put:
Code:
 
$viewer_ip = $SERVER['REMOTE_ADDR'];
$article_id = '';//This, I do not know
mysql_query("INSERT INTO articel_rating_counter (article, ip) VALUES ('$article_id', '$viewer_ip')");


In the part of the script where the rating is filled in, put this:
Code:
 
$viewer_ip = $SERVER['REMOTE_ADDR'];
$article_id = '';//This, I do not know
$check_q = mysql_query("SELECT * FROM articel_rating_counter WHERE ip = '$viewer_ip' AND article = '$article_id' ");
if(@mysql_num_rows($check_q) == 0){
//
// Script goes here
//
}else{
//
// What should happen if they may not rate it.
//
}


If this isn't clear enough, or you're not into coding enough to mod the script, please post the code here, so somebody can do it for you.

Do you want to help me with it? I can't seem to figure it out.
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
Sure.
Just post the script you have for the rating, I'll change it.
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
Ok.

On "NEWS.php" where articles are displayed, I found the following information regarding the rating script:

Code:
 
<tr>
         <td colspan="3" bgcolor="#F2F2F2" class="menu_in">::<?php print "$front_rateit"; ?>:</td>
       </tr>
       <tr>
         <td width="36">
           <div align="right"><?php print "$front_rating"; ?>:</div>
         </td>
         <td width="73">
           <?php
             $width = $Rate*10;
             if (!empty($salt)){
             print "<img src=\"./images/redline.gif\" width=\"$width\" height=\"8\" alt=\"$salt\">";
             }
             else{          
             print "<img src=\"./images/redline.gif\" width=\"$width\" height=\"8\">";
             }
           ?>
         </td>
         <td width="33">
           <?php print "$Rate"; ?>
         </td>
       </tr>
     </table>
     
     <hr noshade size="1" color=#999999>
     <form action="<?php print "../$PHP_SELF"; ?>" method="post">
     <input type="hidden" name="newsid" value="<?php print "$newsid"; ?>">      
     <table width="160" border="0" cellspacing="0" cellpadding="3">  
       <tr>
         <td bgcolor="#F2F2F2" class="menu_in" colspan="2">::<?php print "$front_letmerateit"; ?>:</td>
       </tr>
       <tr>
         <td width="9">&nbsp; </td>
         <td width="139">
           <select name="Rating">
             <option selected value=5>5(<?php print "$front_ratebest"; ?>)</option>
             <option value=4>4</option>
             <option value=3>3</option>
             <option value=2>2</option>
             <option value=1>1</option>
           </select>
         </td>
       </tr>
       <tr>
         <td colspan="2">
           <div align="center">
             <input type="submit" name="PR" value="<?php print "$front_ratesubmit"; ?>">
           </div>
         </td>
       </tr>
     </table>
     </form>



Let me know if there is more you need. I'll keep looking though.

Also, I created a database like you asked.
It's named: ratingcount
Two fields:
1.) newsid (VARCHAR4)
2.) ip (VARCHAR15)
Offline Profile Quote Post Goto Top
 
Jory
Member Avatar
Member
[ *  *  *  *  *  * ]
There should be a peace of php code somewhere above that.
Could you just take the whole code from news.php, put it in like a .phps file, upload that to some server and give us the link?
(Or post it here, if its not all to big)
Because there isn't any code in there that puts the rating into a database or something like that.
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
i sent it to your pm
Offline Profile Quote Post Goto Top
 
solinent
Member Avatar
Member
[ *  *  * ]
If ya post it here, I could help you with it.

By the way, is it your own code or someone elses?
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
Code:
 
<?php
include ("include.h");
if (isset($HTTP_GET_VARS["authid"]))
$title = "Author profile";
else
$title = "Article";
$security = 1;
if (!isset($HTTP_GET_VARS["authid"])) include($shost."includes/TemplateTop.php");
require("NewsSql.inc.php");
$db = new NewsSQL($DBName);


if ((!empty($PR)) && ($Rating>=1)){
  $db->set_Rating($newsid,$Rating);
}
$result = $db->getnewsbyid($newsid);
$title = $result[0]["title"];
$intro = $result[0]["intro"];
$content = $result[0]["content"];
$picturepath = "./photo/";
$viewnum = $result[0]["viewnum"];
$sourceurl = $result[0]["sourceurl"];
$source = $result[0]["source"];
$adddate = $result[0]["adddate"];
$db->addhit($viewnum,$newsid);
$Rate = $result[0]["rating"];
$Rate1 = $Rate*10;
$Rate2 = ceil($Rate1);
$Rate = $Rate2/10;
$authorid = $result[0]["authorid"];

$authorresult = $db->getauthorbyid($authorid);
$authorpic=$authorresult[0]["picture"];
$authortitle=$authorresult[0]["title"];
$authorname=$authorresult[0]["authorname"];
$authorcnt=$authorresult[0]["cnt"];
$authoravgrating=$authorresult[0]["avgrating"];




$pre[0] = $newsid-1;

for ($i=1; $i<=$prenumber-1; $i++){
$pre[$i] = $pre[$i-1]-1;
}

$next[0] = $newsid+1;

for ($i=1; $i<=$nextnumber-1; $i++){
$next[$i] = $next[$i-1]+1;
}

$picresult = $db->getpicbynewsid($newsid);

?>
<html>
<head>
<title><?php  print "$title"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php print "$front_charset"; ?>">
<link rel="stylesheet" href="style/style.css" type="text/css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
   document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<style type="text/css">
<!--

.box {
border: 1px dashed #CCCCCC;
padding: 10px;
background-color: #E6E8FF;
}
.box2 {
border: 1px dashed #CCCCCC;
padding: 3px;
}
.style1 {color: #FFFFFF}
.style3 {
color: #FFFFFF;
font-size: 24px;
font-weight: bold;
}
.content{
padding: 10px 10px 10px 10px;

border-right: 1px solid #CCCCCC;
border-left: 1px solid #CCCCCC;
}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<?php

$PicturePath = "../photo/";

if (isset($HTTP_GET_VARS["authid"]))
{
$authorid = $HTTP_GET_VARS["authid"];

$authorresult = $db->getauthorbyid2($authorid);
$authorpic=$authorresult[0]["picture"];
$authorname=$authorresult[0]["authorname"];
$authornick=$authorresult[0]["nick"];
$authortitle=$authorresult[0]["title"];
$authorcnt=$authorresult[0]["cnt"];
$authoravgrating=$authorresult[0]["avgrating"];
$authorbirthdate=$authorresult[0]["birthdate"];
$authorlocation=$authorresult[0]["location"];
$authorparentnames=$authorresult[0]["parentnames"];
$authorquote=$authorresult[0]["quote"];
$authorwhyjoin=$authorresult[0]["whyjoin"];
$authoranimal=$authorresult[0]["animal"];
$authorcolor=$authorresult[0]["color"];
$authorfood=$authorresult[0]["food"];
$authorhobbies=$authorresult[0]["hobbies"];
$authorsiblings=$authorresult[0]["siblings"];
?>
<table  width="390" border="0" align="center" cellpadding="0" cellspacing="1" class="content">  
       <tr> <td colspan="2" align="center" bgcolor="#0099FF" class="mprofile"><p class="style1"><br>
         <span class="style3"><em>Meet STF</em><br>
         Member Profile </span><br>
         </p>
           </td></tr>
    <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
  <td width="120" rowspan="2" align="center" valign="middle" >        
         <img src="./photo/<?php echo $PicturePath.$authorpic ?>"></img>          </td>
         <td align="center" valign="bottom" ><font size="5"><b><?php echo $authorname ?></b></font></td>
       </tr>
 
       <tr>
         <td align="center" valign="top"><font size="3"><i><b><?php echo $authortitle ?></b></i></font></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" class="box" ><strong><?php echo $admin_authornick?></strong></td>
         <td align="center" valign="middle" class="box" ><?php echo $authornick ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorcnt?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><?php echo $authorcnt ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" class="box" ><strong><?php echo $admin_authoravgrating?></strong></td>
         <td align="center" valign="middle" class="box" ><?php echo $authoravgrating ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorbdate?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><?php echo $authorbirthdate  ?></td>
       </tr>
 <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" class="box" ><strong><?php echo $admin_authorlocation?></strong></td>
         <td align="center" valign="middle" class="box" ><?php echo $authorlocation ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorparents?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><?php echo $authorparentnames ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorsiblings?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><?php echo $authorsiblings ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" class="box" ><strong><?php echo $admin_authorquote?></strong></td>
         <td align="center" valign="middle" class="box" ><div align="left"><?php echo $authorquote ?></div>            </td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorwhy?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><div align="left"><?php echo $authorwhyjoin ?></div></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" class="box" ><strong><?php echo $admin_authoranimal?></strong></td>
         <td align="center" valign="middle" class="box" ><?php echo $authoranimal ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorcolor?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><?php echo $authorcolor ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" class="box" ><strong><?php echo $admin_authorfood?></strong></td>
         <td align="center" valign="middle" class="box" ><?php echo $authorfood ?></td>
       </tr>
   <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box2" ></td>
       </tr>
       <tr>
         <td align="left" valign="middle" bgcolor="f6f6f6" class="box" ><strong><?php echo $admin_authorhobbies?></strong></td>
         <td align="center" valign="middle" bgcolor="f6f6f6" class="box" ><?php echo $authorhobbies ?></td>
       </tr>
</table>
</body>
<?php
exit;
}

include("top.php3");
?>
<table width="577" border="0" cellspacing="1" cellpadding="0" align="center" class="table_01">  
 <tr>
   <td class="table_02" width="25%" valign="top">
     <table width="160" border="0" cellspacing="0" cellpadding="3">
       <tr>
  <td align="center" colspan="3" bgcolor="#F2F2F2" class="menu_in">
 <a href="javascript:void window.open('./news.php?authid=<?php echo $authorid ?>', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=yes,menubar=no,resizable=yes,width=450,height=500,directories=no,location=no');"><img src="./photo/<?php echo $PicturePath.$authorpic ?>" alt="Author profile" border="0" /><br /><?php echo $authorname ?><br /><?php echo $authortitle ?><br /><?php echo $authorcnt ?><br /><?php echo $authoravgrating ?>Click to see full Member Profile<br /><br /><br /></a>
         </td>
       </tr>
       
       <tr>
         <td colspan="3" bgcolor="#F2F2F2" class="menu_in">::<?php print "$front_rateit"; ?>:</td>
       </tr>
       <tr>
         <td width="36">
           <div align="right"><?php print "$front_rating"; ?>:</div>
         </td>
         <td width="73">
           <?php
             $width = $Rate*10;
             if (!empty($salt)){
             print "<img src=\"./images/redline.gif\" width=\"$width\" height=\"8\" alt=\"$salt\">";
             }
             else{          
             print "<img src=\"./images/redline.gif\" width=\"$width\" height=\"8\">";
             }
           ?>
         </td>
         <td width="33">
           <?php print "$Rate"; ?>
         </td>
       </tr>
     </table>
     
     <hr noshade size="1" color=#999999>
     <form action="<?php print "../$PHP_SELF"; ?>" method="post">
     <input type="hidden" name="newsid" value="<?php print "$newsid"; ?>">      
     <table width="160" border="0" cellspacing="0" cellpadding="3">  
       <tr>
         <td bgcolor="#F2F2F2" class="menu_in" colspan="2">::<?php print "$front_letmerateit"; ?>:</td>
       </tr>
       <tr>
         <td width="9">&nbsp; </td>
         <td width="139">
           <select name="Rating">
             <option selected value=5>5(<?php print "$front_ratebest"; ?>)</option>
             <option value=4>4</option>
             <option value=3>3</option>
             <option value=2>2</option>
             <option value=1>1</option>
           </select>
         </td>
       </tr>
       <tr>
         <td colspan="2">
           <div align="center">
             <input type="submit" name="PR" value="<?php print "$front_ratesubmit"; ?>">
           </div>
         </td>
       </tr>
     </table>
     </form>
     
     <hr noshade size="1" color=#999999>
     <table width="160" border="0" cellspacing="0" cellpadding="4">
       <tr>
         <td><img src="images/left_search.gif" width="152" height="16"></td>
       </tr>
       <tr>
         <td>            
         <form action="search.php" method="POST">                  
           <table border="0" cellspacing="0" cellpadding="0" width="145" align="right">
             <tr>
                 <td><input type="text" name="keyword" value="" size="12"></td>
             </tr>
             <tr><td><input type="submit" name="searchsubmit" value="<?php print "$front_searchsubmit"; ?>"></td></tr>
             <tr><td>&nbsp;</td></tr>
           </table>            
           </form>
         </td>
       </tr>
     </table>      
   </td>
   
   <td class="menu" bgcolor="#FFFFFF" valign="top" width="75%">
     <table width="100%" border="0" cellspacing="0" cellpadding="4">
        <tr>
           <td bgcolor="#F2F2F2" class="menu_in">::<? print "$title"; ?>&nbsp;&nbsp;&nbsp;<? print "$viewnum $front_timesread"; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<div align="right"><a href="../gallery">See Pictures!</a> </div></td>
       </tr>
         <?php
         if (!empty($intro)){
          print "<tr>
              <td><em>$intro</em></td>
             </tr>";
         }
         
       if (!empty($picresult)){
        while ( list($key,$val)=each($picresult) ) {
         $pictitle = stripslashes($val["pictitle"]);
         $picture = stripslashes($val["picture"]);
         
         print "<tr>
                <td align=\"center\"><img src=\"$picturepath$picture\" alt=\"$pictitle\"><br>
                $pictitle<br>
                </td>
                </tr>";
         }
       }
       
       if (!empty($content)){
             $content = nl2br($content);
       print "<tr>
              <td>$content</td>
             </tr>";
       }
               
        if (!empty($sourceurl)){
        print "<tr>
                 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">$front_source :</td>
               </tr>
               <tr>
                 <td><a href=\"$sourceurl\" class=\"en_b\" target=\"_blank\">$source</a></td>
               </tr>";
       }
       else {
       if (!empty($source)){
       print "<tr>
                 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">$front_source :</td>
              </tr>
              <tr>
                 <td>$source</td>
              </tr>";
          }
       }
       
       if (!empty($adddate)){
       print "<tr>
                 <td bgcolor=\"#F2F2F2\" class=\"menu_in\">$front_adddate :</td>
              </tr>
              <tr>
                 <td>$adddate</td>
              </tr>";
          }
                     
       for ($i=0; $i<=$prenumber-1; $i++){
         $prename[$i] = $db->getname($pre[$i]);
         if (!empty($prename[$i])){
         $prenotemptytag = true;
         }
         }
         for ($i=0; $i<=$nextnumber-1; $i++){
         $nextname[$i] = $db->getname($next[$i]);
         if (!empty($nextname[$i])){
         $nextnotemptytag = true;
         }
         }
         if (($prenotemptytag)||($nextnotemptytag)){
         print "<tr>
                <td bgcolor=\"#F2F2F2\" class=\"menu_in\">$front_more ...</td>
                </tr>
                <tr>
                <td>";
         for ($i=0; $i<=$prenumber-1; $i++){
         if (!empty($prename[$i])){      
         print "<a href=\"news.php?newsid=$pre[$i]\" class=\"en_b\">$prename[$i]</a><br>";
         }
         }
         
         for ($i=0; $i<=$nextnumber-1; $i++){
         if (!empty($nextname[$i])){          
         print "<a href=\"news.php?newsid=$next[$i]\" class=\"en_b\">$nextname[$i]</a><br>";  
         }
         }
         print "</td>
               </tr>";
         }        
       
       ?>
       <tr>
           <td bgcolor="#F2F2F2" class="menu_in" align="center"><a href="print.php?newsid=<? print "$newsid"; ?>" class="en_b"><? print "$front_printstory"; ?></a>&nbsp;&nbsp;&nbsp;<a href="send.php?newsid=<? print "$newsid"; ?>" class="en_b"><? print "$front_sendtofriend"; ?></a></td>
       </tr>
     </table>            
   </td>
 </tr>
</table>
<?php
include("bottom.php3");
?>
</body>
</html>
<?php include($shost."includes/TemplateBottom.php") ?>


hey solinent,
no it's not my code its someone elses.
Offline Profile Quote Post Goto Top
 
lavashark.com
Member
[ * ]
Do you need more information?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Technology Chat · Next Topic »
Add Reply
  • Pages:
  • 1