Location: PHPKode > scripts > Free PHP Recipes Plug-n-Play Website Script > free-php-recipes-plug-n-play-website-script/v.php
<?php
/************* Recipe *****************************/
/*
Released by AwesomePHP.com, under the GPL License, a
copy of it should be attached to the zip file, or
you can view it on http://AwesomePHP.com/gpl.txt
*/
/************* Recipe *****************************/

$rec_title = mysql_escape_string(urldecode($QUERY[1]));

$get_info = mysql_fetch_assoc(mysql_query("SELECT * FROM `recp_rec_list` WHERE `rec_title`='$rec_title'"));
$update = mysql_query("UPDATE `recp_rec_list` SET `rec_views`=rec_views+1 WHERE `rec_title`='$rec_title'");
?>
<table width="<?=$PAGE_WIDTH;?>"  border="0" style="border:1px solid #FFDBCA;" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td width="50%" colspan="2"><div align="center"><font color="#999999" size="4"><?=$get_info['rec_title'];?> </font></div>      </td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <table width="100%"  border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td style="border:1px solid #FFDBCA;"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php
			echo $get_info['rec_desc'];
			 ?></font></td>
            </tr>
            <tr>
              <td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><?=$get_info['rec_views'];?> Reads </font></div></td>
            </tr>
          </table>
	  <hr style="width:80%;border:1px solid green;">
    </div></td>
  </tr>
</table>
Return current item: Free PHP Recipes Plug-n-Play Website Script