Jump to content

Need help, please...


jthan03

Recommended Posts

Hi,

 

Can you please help me on this.

I want to remove the ASC/DESC in the URL by using 1/0 as a value.

 

Here is the code:

<?php

    if(empty($_GET['order'])){
                               $_GET['order'] = "ASC";
                }else{
                        if($_GET['order'] == 'DESC'){
                                        $_GET['order'] = "ASC";
                                    }else{
                                        $_GET['order'] = "DESC";
                                    }
                }
?>

<script>
function FuncSort(aID) {
        document.form10.dsp.value	=	"";
document.form10.action		=	"../qa/"+aID;
document.form10.submit();
}
</script>

<html>
<td style="width:120px;"><a href="#" onclick="javascript:FuncSort('tsa010.php?order=<?=$_GET['order']?>'); return false">Date/Time</a></td>
</html>

 

thank you so much for the reply.

 

Link to comment
https://forums.phpfreaks.com/topic/249358-need-help-please/
Share on other sites

forgot this line:

<a href="#" onclick="javascript:FuncSort('tsa010.php?order=<?php echo $way; ?>'); return false">

 

if i remove this, what will i put to create a ASC/DESC link?

thanks for the reply...

 

I didn't say remove that line. I changed it some how, don't remember how, check it out with your line and replace.

Link to comment
https://forums.phpfreaks.com/topic/249358-need-help-please/#findComment-1281143
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.