Hi
Can someone help me i am trying to use the random function to echo 3 random rows from the code below. The problem is I have no idea how to implement it correctly.
$_GET['cat'];
echo $cat;
$db = mysql_connect (, , );
mysql_select_db ('db76275624');
$query = "Select products.product, products.price ,products.productnumber, products.rewardpoints, products.shortdes, productdetails.largeimage, productdetails.product from products, productdetails where products.catagorie = '".$cat."' and products.catagoriefeatured = 'yes' and products.product = productdetails.product";
$result = mysql_query($query, $db);
while ($myrow = mysql_fetch_array($result))
{
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
echo "<tr>";
Can someone point me in the right direction and show me where to insert it.