Hi,
How do I display the row results from a-z?
Example:
Select a category - a b c d e f g .... And if the user click b, then all the products starting with be is displayed?
Thanks
[PHP]
<?php
$con = mysql_connect(" localhost","*** *","****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db ("gamehunt_co_z a_store", $con);
$result = mysql_query("SE LECT * FROM products_descri ption ORDER BY products_name") ;
while($row = mysql_fetch_arr ay($result))
{
echo "<a href=\"$row[products_url]\">$row[products_name]</a>";
echo "<br />";
}mysql_close($c on);
?>
[/PHP]
How do I display the row results from a-z?
Example:
Select a category - a b c d e f g .... And if the user click b, then all the products starting with be is displayed?
Thanks
[PHP]
<?php
$con = mysql_connect(" localhost","*** *","****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db ("gamehunt_co_z a_store", $con);
$result = mysql_query("SE LECT * FROM products_descri ption ORDER BY products_name") ;
while($row = mysql_fetch_arr ay($result))
{
echo "<a href=\"$row[products_url]\">$row[products_name]</a>";
echo "<br />";
}mysql_close($c on);
?>
[/PHP]
Comment