Jump to content

N00B-Why won't my records sort?


Recommended Posts

Hi.

I'm trying very hard to do something that is probably simple. I have a job bulletin that is updated on a daily basis. (note, this script was pre-existing, and I have been modifying it myself)

I would like table to sort the jobs by state by default whenever the page loads. At first, I wanted to be fancy and have clickable titles that automatically sort by that column, but have given up on that.

I used the Recordset command to sort the table, which provides this code:

<?php
mysql_select_db($database_JobForms, $JobForms);
$query_JobForms = "SELECT * FROM job_list ORDER BY job_list.job_state";
$JobForms = mysql_query($query_JobForms, $JobForms) or die(mysql_error());
$row_JobForms = mysql_fetch_assoc($JobForms);
$totalRows_JobForms = mysql_num_rows($JobForms);
?>

But when I load the page, it still doesn't order correctly. What am I doing wrong?

[a href=\"http://psninc.net/jobsort.txt\" target=\"_blank\"]Here is the entire code.[/a]

Can anyone help?

Rachel
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.