Code: Select all
<?php echo "<a href='to.php?$sort=='clase''>CL</a><br>"?>Code: Select all
<?php echo "<a href='to.php?$clas=='RO''>RO=Rock</a><br>"?>Thanks in advanced
Moderator: General Moderators
Code: Select all
<?php echo "<a href='to.php?$sort=='clase''>CL</a><br>"?>Code: Select all
<?php echo "<a href='to.php?$clas=='RO''>RO=Rock</a><br>"?>Code: Select all
<?php echo "<a href='to.php?clas=RO'>RO=Rock</a><br>"; ?>Code: Select all
$tipo=$HTTP_GET_VARS['$clas'];
if ($tipo = "TO"){
$sql= "select id,clase,tema,ritmo,autor,arreglo,fecha,kar,nuevo,archivo from temas order by $sort";
}else{
$sql= "select id,clase,tema,ritmo,autor,arreglo,fecha,kar,nuevo,archivo from temas where CLASE like '%" & $tipo & "%' order by $sort";
}Code: Select all
echo '<a href="to.php?clas=RO">RO=Rock</a>';Code: Select all
$tipo = $_GET['clas'];
if ($tipo != 'RO'){
$sql = 'select id,clase,tema,ritmo,autor,arreglo,fecha,kar,nuevo,archivo from temas order by ' . $sort;
}else{
$sql = 'select id,clase,tema,ritmo,autor,arreglo,fecha,kar,nuevo,archivo from temas where CLASE like \'%RO%\' order by ' . $sort;
}