Jump to content

mysql number problem


newb

Recommended Posts

ok i have a number problem its probably an easy fix but idk

 

i have rows in my database that are like this:

 

A Thread Title 1: New

A Thread Title 10: New

A Thread Title 11: New

A Thread Title 12: New

A Thread Title 13: New

A Thread Title 2: New

A Thread Title 21: New

A Thread Title 22: New

A Thread Title 3: New

 

I'd likke them to be like this:

A Thread Title 1: New

A Thread Title 2: New

A Thread Title 3: New

A Thread Title 10: New

A Thread Title 11: New

 

etc etc..

 

how can i fix?

 

Link to comment
https://forums.phpfreaks.com/topic/207443-mysql-number-problem/
Share on other sites

ideally you would have a column with just the actual thread title, a separate column for an id and another separate column or even whole separate table for that "new", depending on what exactly that is supposed to signify.  Then you could just order by id.

 

IOW I sure hope that you don't have 1 column with that whole string as values...

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.