Code: Select all
<?php
if($_POST)
{
extract($_POST);
$rate=$_POST["rate"];
$image=$_POST["image"];
//echo $imageid=$_POST["imageid"];
/*$result1=mysql_query("SELECT * FROM netkushi_rating");
While($row = mysql_fetch_assoc($result1))
{
$id=$row["id"];
$image=$row["image"];
}*/
$sql = "INSERT INTO netkushi_rating (`image` ,`rate`)VALUES ('$image','$rate')";
mysql_query($sql);
$v="inserted";
}
?>so i need the help for displaying highest rated picture first in home page
thank u
haritha