Just lil old me again...
This has been puzzling me for a while. I'm working on a site that will store the navigation links in a MySQL table, and allow people to modify them, update them etc.
Currently, I have two fields, "link" and "text" and they contain
link = "somepage.php,index.php,home.php"
text = "Some Page,Index,Home"
And I explode them and output them as links. Obviously not a good way, I was just messing about. I thought about adding a record for each link, as this would seem easy. However, I don't know how to order them. I could have another field for "place" and use 1, 2, 3, 4 etc., but then if someone want's to insert on between 1 and 2, it means renumbering everything after 2!
Does anyone know of a simple solution that I've totally not seen?!!
Thanks,
Danny
This has been puzzling me for a while. I'm working on a site that will store the navigation links in a MySQL table, and allow people to modify them, update them etc.
Currently, I have two fields, "link" and "text" and they contain
link = "somepage.php,index.php,home.php"
text = "Some Page,Index,Home"
And I explode them and output them as links. Obviously not a good way, I was just messing about. I thought about adding a record for each link, as this would seem easy. However, I don't know how to order them. I could have another field for "place" and use 1, 2, 3, 4 etc., but then if someone want's to insert on between 1 and 2, it means renumbering everything after 2!
Does anyone know of a simple solution that I've totally not seen?!!
Thanks,
Danny