this is prolly too simple but i got a brain block
i have two arrays, one is days[1-7] and the other is
timeofday[a-l],<each letter represents a time on the hour>
how do is sort by days and put each day's list in order of time?
so that i get a list in order of days and each day is in order of
time...i can put in order by day or time but they always end up with
whatever is the other order wrong.
if ( isset($_GET['sort']) && $_GET['sort']=='call_days' ) {
$_SESSION['sort'] = 'call_days'; }
if ( isset($_GET['sort']) && $_GET['sort']=='call_time' ) {
$_SESSION['sort'] = 'call_time'; }
and:
<?php if ($_SESSION['sort']!='call_time') { echo '<a
href="',$_SERVE R['PHP_SELF'],'?sort=call_ti me">Call Time</a>'; } else {
echo 'Call Time ↓'; } ?>
<?php if ($_SESSION['sort']!='call_days') { echo '<a
href="',$_SERVE R['PHP_SELF'],'?sort=call_da ys">Call Days</a>'; } else {
echo 'Call Days ↓'; } ?>
:-)^2
i have two arrays, one is days[1-7] and the other is
timeofday[a-l],<each letter represents a time on the hour>
how do is sort by days and put each day's list in order of time?
so that i get a list in order of days and each day is in order of
time...i can put in order by day or time but they always end up with
whatever is the other order wrong.
if ( isset($_GET['sort']) && $_GET['sort']=='call_days' ) {
$_SESSION['sort'] = 'call_days'; }
if ( isset($_GET['sort']) && $_GET['sort']=='call_time' ) {
$_SESSION['sort'] = 'call_time'; }
and:
<?php if ($_SESSION['sort']!='call_time') { echo '<a
href="',$_SERVE R['PHP_SELF'],'?sort=call_ti me">Call Time</a>'; } else {
echo 'Call Time ↓'; } ?>
<?php if ($_SESSION['sort']!='call_days') { echo '<a
href="',$_SERVE R['PHP_SELF'],'?sort=call_da ys">Call Days</a>'; } else {
echo 'Call Days ↓'; } ?>
:-)^2
Comment